Accept an environment in the push config
This commit is contained in:
parent
8a7e546972
commit
87b4e1f2cc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue