Class: Chef::Knife::BlueboxImageCreate
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::BlueboxImageCreate
- Defined in:
- lib/chef/knife/bluebox_image_create.rb
Instance Method Summary collapse
Instance Method Details
#highline ⇒ Object
44 45 46 |
# File 'lib/chef/knife/bluebox_image_create.rb', line 44 def highline @highline ||= HighLine.new end |
#run ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/chef/knife/bluebox_image_create.rb', line 48 def run bluebox,image,create = ARGV.shift, ARGV.shift, ARGV.shift bluebox = Fog::Compute::Bluebox.new( :bluebox_customer_id => Chef::Config[:knife][:bluebox_customer_id], :bluebox_api_key => Chef::Config[:knife][:bluebox_api_key] ) config[:public] ||= false config[:block_id] ||= ARGV.shift image = bluebox.images.new(config) response = image.save puts response end |