Class: Vagrant::Plugin::V2::Push

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/plugin/v2/push.rb

Direct Known Subclasses

Remote::Push

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, config) ⇒ Push

Initializes the pusher with the given environment the push configuration.

Parameters:

  • env (Environment)
  • config (Object)

    Push configuration



16
17
18
19
# File 'lib/vagrant/plugin/v2/push.rb', line 16

def initialize(env, config)
  @env     = env
  @config  = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



9
10
11
# File 'lib/vagrant/plugin/v2/push.rb', line 9

def config
  @config
end

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/vagrant/plugin/v2/push.rb', line 8

def env
  @env
end

Instance Method Details

#pushObject

This is the method called when the actual pushing should be done.

No return value is expected.



25
26
# File 'lib/vagrant/plugin/v2/push.rb', line 25

def push
end