Class: Bosh::Bootstrap::Stages::StageValidateInceptionVm

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ StageValidateInceptionVm

Returns a new instance of StageValidateInceptionVm.



5
6
7
# File 'lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb', line 5

def initialize(settings)
  @settings = settings
end

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings.



3
4
5
# File 'lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb', line 3

def settings
  @settings
end

Instance Method Details

#commandsObject



9
10
11
12
13
# File 'lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb', line 9

def commands
  @commands ||= Bosh::Bootstrap::Commander::Commands.new do |server|
    server.validate "ubuntu", script("validate_ubuntu"), ssh_username: settings.inception.username
  end
end