Class: Brightbox::CommandGenerator
- Inherits:
-
Object
- Object
- Brightbox::CommandGenerator
- Defined in:
- lib/bbcloud/command_generator.rb
Constant Summary collapse
- COMMAND_LIST =
[ 'brightbox-accounts', 'brightbox-cloudips', 'brightbox-config', 'brightbox-images', 'brightbox-lbs', 'brightbox-servers', 'brightbox-types', 'brightbox-users', 'brightbox-zones' ]
Instance Method Summary collapse
-
#initialize(bbcloud_path) ⇒ CommandGenerator
constructor
A new instance of CommandGenerator.
Constructor Details
#initialize(bbcloud_path) ⇒ CommandGenerator
Returns a new instance of CommandGenerator.
15 16 17 18 19 20 21 22 |
# File 'lib/bbcloud/command_generator.rb', line 15 def initialize(bbcloud_path) @bbcloud_path = bbcloud_path COMMAND_LIST.each do |command| File.open("#{cli_binary_path}/#{command}","w+") do |fl| fl.write(command_template) end end end |