Accept an environment in the push config

This commit is contained in:
Seth Vargo 2014-10-22 22:02:46 -04:00
parent 8a7e546972
commit 87b4e1f2cc
1 changed files with 7 additions and 11 deletions

View File

@ -2,20 +2,16 @@ module Vagrant
module Plugin module Plugin
module V2 module V2
class Push class Push
attr_reader :machine attr_reader :environment
attr_reader :config attr_reader :config
# Initializes the pusher with the machine that exists for this project # Initializes the pusher with the given environment the push
# as well as the configuration (the push configuration, not the full machine # configuration.
# configuration).
# #
# The pusher should _not_ do anything at this point except # @param [environment] environment
# initialize internal state. # @param [Object] config Push configuration
# def initialize(environment, config)
# @param [Machine] machine The machine associated with this code. @environment = environment
# @param [Object] config Push configuration, if one was set.
def initialize(machine, config)
@machine = machine
@config = config @config = config
end end