Sha256: 9c4073671047c97a47563a8b3c05f234e7f4fc200cba193d70fa66d8727d9d91

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

desc 'Snapshot the specified servers'
arg_name 'server-id...'
command [:snapshot] do |c|

  c.action do |global_options,options,args|

    servers = Server.find(args).compact

    servers.each do |s|
      info "Snapshotting server #{s}"
      s.snapshot
    end

    render_table(servers)

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bbcloud-0.8.2 lib/bbcloud/commands/servers-snapshot.rb
bbcloud-0.8.1 lib/bbcloud/commands/servers-snapshot.rb
bbcloud-0.8 lib/bbcloud/commands/servers-snapshot.rb
bbcloud-0.7 lib/bbcloud/commands/servers-snapshot.rb
bbcloud-0.6.2 lib/bbcloud/commands/servers-snapshot.rb