Class: Bosh::AwsCliPlugin::Bootstrap
- Inherits:
-
Object
- Object
- Bosh::AwsCliPlugin::Bootstrap
show all
- Defined in:
- lib/bosh_cli_plugin_aws/bootstrap.rb
Constant Summary
collapse
- AWS_JENKINS_BUCKET =
"bosh-jenkins-artifacts"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(runner, options) ⇒ Bootstrap
8
9
10
11
|
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 8
def initialize(runner, options)
self.options = options
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
@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.options = self.options
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)
login_command = Bosh::Cli::Command::Login.new(runner)
login_command.options = self.options
login_command.login(username, password)
end
|
#manifest ⇒ Object
26
27
28
|
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 26
def manifest
raise NotImplementedError
end
|