Class: Bosh::Bootstrap::Stages::SetupNewBosh

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ SetupNewBosh

Returns a new instance of SetupNewBosh.



7
8
9
# File 'lib/bosh-bootstrap/stages/stage_setup_new_bosh.rb', line 7

def initialize(settings)
  @settings = settings
end

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings.



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

def settings
  @settings
end

Instance Method Details

#commandsObject



11
12
13
14
15
16
17
18
19
# File 'lib/bosh-bootstrap/stages/stage_setup_new_bosh.rb', line 11

def commands
  @commands ||= Bosh::Bootstrap::Commander::Commands.new do |server|
    server.setup "bosh user", script("setup_bosh_user",
                  "BOSH_NAME" => settings.bosh_name,
                  "BOSH_HOST" => settings.bosh.ip_address,
                  "BOSH_USERNAME" => settings.bosh_username,
                  "BOSH_PASSWORD" => settings.bosh_password)
  end
end