Sha256: acc9596f00c938b4afb862983f4fb16e50ef51608077ee7167ab3d7c4617ef69

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

desc 'Destroy images'
arg_name 'image-id...'
command [:destroy] do |c|

  c.action do |global_options,options,args|

    images = Image.find(args).compact

    images.each do |i|
      info "Destroying image #{i}"
      i.destroy
      i.reload
    end

    render_table(images)

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bbcloud-0.8.2 lib/bbcloud/commands/images-destroy.rb
bbcloud-0.8.1 lib/bbcloud/commands/images-destroy.rb
bbcloud-0.8 lib/bbcloud/commands/images-destroy.rb
bbcloud-0.7 lib/bbcloud/commands/images-destroy.rb
bbcloud-0.6.2 lib/bbcloud/commands/images-destroy.rb