Class: Bosh::Gen::BoshCli

Inherits:
Object show all
Defined in:
lib/bosh/gen/bosh-cli-commands.rb

Class Method Summary collapse

Class Method Details

.cli_nameObject



9
10
11
12
13
# File 'lib/bosh/gen/bosh-cli-commands.rb', line 9

def self.cli_name
  @@cli_name ||= begin
    `which bosh2`.size == 0 ? "bosh" : "bosh2"
  end
end

.run(command) ⇒ Object

BoshCli.run(“add-blob #source_path #target_path”)



5
6
7
# File 'lib/bosh/gen/bosh-cli-commands.rb', line 5

def self.run(command)
  `#{cli_name} #{command}`
end