Class: Bosh::Aws::Bootstrap
- Inherits:
-
Object
- Object
- Bosh::Aws::Bootstrap
- Defined in:
- lib/bosh_cli_plugin_aws/bootstrap.rb
Direct Known Subclasses
Constant Summary collapse
- AWS_JENKINS_BUCKET =
"bosh-jenkins-artifacts"
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#runner ⇒ Object
Returns the value of attribute runner.
Instance Method Summary collapse
- #create_user(username, password) ⇒ Object
-
#initialize(runner, options) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
- #login(username, password) ⇒ Object
- #manifest ⇒ Object
Constructor Details
#initialize(runner, options) ⇒ Bootstrap
Returns a new instance of Bootstrap.
8 9 10 11 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 8 def initialize(runner, ) self. = self.runner = runner end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 6 def @options end |
#runner ⇒ Object
Returns the value of attribute runner.
6 7 8 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 6 def runner @runner end |
Instance Method Details
#create_user(username, password) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 13 def create_user(username, password) user = Bosh::Cli::Command::User.new(runner) user. = self. user.create(username, password) login(username, password) end |
#login(username, password) ⇒ Object
20 21 22 23 24 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 20 def login(username, password) misc = Bosh::Cli::Command::Misc.new(runner) misc. = self. misc.login(username, password) end |
#manifest ⇒ Object
26 27 28 |
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 26 def manifest raise NotImplementedError end |