Class: Bosh::Bootstrap::Stages::SetupNewBosh
- Inherits:
-
Object
- Object
- Bosh::Bootstrap::Stages::SetupNewBosh
- Defined in:
- lib/bosh-bootstrap/stages/stage_setup_new_bosh.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #commands ⇒ Object
-
#initialize(settings) ⇒ SetupNewBosh
constructor
A new instance of SetupNewBosh.
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
#settings ⇒ Object (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
#commands ⇒ Object
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 |