Class: VagrantPlugins::Skytap::SetupHelper
- Defined in:
- lib/vagrant-skytap/setup_helper.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#machine ⇒ Object
readonly
Returns the value of attribute machine.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#provider_config ⇒ Object
readonly
Returns the value of attribute provider_config.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
- #current_vm ⇒ Object
-
#initialize(env, environment) ⇒ SetupHelper
constructor
A new instance of SetupHelper.
- #run! ⇒ Object
Constructor Details
#initialize(env, environment) ⇒ SetupHelper
Returns a new instance of SetupHelper.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 17 def initialize(env, environment) @env = env @logger = Log4r::Logger.new("vagrant_skytap::setup_helper") @environment = environment @machine = env[:machine] @provider_config = env[:machine].provider_config @username = @machine.config.ssh.username @password = @machine.config.ssh.password @host = @machine.config.ssh.host @port = @machine.config.ssh.port || Net::SSH::Transport::Session::DEFAULT_PORT end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
10 11 12 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 10 def env @env end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
10 11 12 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 10 def environment @environment end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
11 12 13 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 11 def host @host end |
#machine ⇒ Object (readonly)
Returns the value of attribute machine.
10 11 12 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 10 def machine @machine end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
11 12 13 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 11 def password @password end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
11 12 13 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 11 def port @port end |
#provider_config ⇒ Object (readonly)
Returns the value of attribute provider_config.
10 11 12 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 10 def provider_config @provider_config end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
11 12 13 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 11 def username @username end |
Class Method Details
.run!(env, environment) ⇒ Object
13 14 15 |
# File 'lib/vagrant-skytap/setup_helper.rb', line 13 def self.run!(env, environment) new(env, environment).run! end |