Class: Bosh::Gen::BoshCli
Class Method Summary collapse
- .cli_name ⇒ Object
-
.run(command) ⇒ Object
BoshCli.run(“add-blob #source_path #target_path”).
Class Method Details
.cli_name ⇒ Object
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 |