Class: Bosh::Cli::Command::Deployer

Inherits:
Base
  • Object
show all
Defined in:
lib/bosh/cli/commands/bosh_deployer.rb,
lib/bosh/cli/commands/deployer.rb

Instance Method Summary collapse

Instance Method Details

#generate_stub(name, path = nil) ⇒ Object



25
26
27
28
# File 'lib/bosh/cli/commands/deployer.rb', line 25

def generate_stub(name, path=nil)
  require "bosh-deployer/cli/commands/generate_stub"
  Bosh::Deployer::Cli::Commands::GenerateStub.new(name,path).perform
end

#helpObject



7
8
9
10
11
12
13
14
# File 'lib/bosh/cli/commands/bosh_deployer.rb', line 7

def help
  say("bosh deployer sub-commands:")
  nl
  cmds = Bosh::Cli::Config.commands.values.find_all {|c|
    c.usage =~ /^deployer/
  }
  Bosh::Cli::Command::Help.list_commands(cmds)
end

#provision_stemcellsObject



18
19
20
21
# File 'lib/bosh/cli/commands/bosh_deployer.rb', line 18

def provision_stemcells
  require "bosh-deployer/cli/commands/provision_stemcells"
  Bosh::Deployer::Cli::Commands::ProvisionStemcells.new.perform
end