Class: Bosh::AwsCliPlugin::Bootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh_cli_plugin_aws/bootstrap.rb

Direct Known Subclasses

BoshBootstrap, MicroBoshBootstrap

Constant Summary collapse

AWS_JENKINS_BUCKET =
"bosh-jenkins-artifacts"

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  self.options = options
  self.runner = runner
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.


6
7
8
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 6

def options
  @options
end

#runnerObject

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)
  (username, password)
end

#login(username, password) ⇒ Object


20
21
22
23
24
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 20

def (username, password)
   = Bosh::Cli::Command::Login.new(runner)
  .options = self.options
  .(username, password)
end

#manifestObject

Raises:

  • (NotImplementedError)

26
27
28
# File 'lib/bosh_cli_plugin_aws/bootstrap.rb', line 26

def manifest
  raise NotImplementedError
end