From 87b4e1f2ccc45fac688dfe3dd3248f087c59216e Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 22 Oct 2014 22:02:46 -0400 Subject: [PATCH] Accept an environment in the push config --- lib/vagrant/plugin/v2/push.rb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/vagrant/plugin/v2/push.rb b/lib/vagrant/plugin/v2/push.rb index 63f9d4ae0..002479b33 100644 --- a/lib/vagrant/plugin/v2/push.rb +++ b/lib/vagrant/plugin/v2/push.rb @@ -2,20 +2,16 @@ module Vagrant module Plugin module V2 class Push - attr_reader :machine + attr_reader :environment attr_reader :config - # Initializes the pusher with the machine that exists for this project - # as well as the configuration (the push configuration, not the full machine - # configuration). + # Initializes the pusher with the given environment the push + # configuration. # - # The pusher should _not_ do anything at this point except - # initialize internal state. - # - # @param [Machine] machine The machine associated with this code. - # @param [Object] config Push configuration, if one was set. - def initialize(machine, config) - @machine = machine + # @param [environment] environment + # @param [Object] config Push configuration + def initialize(environment, config) + @environment = environment @config = config end