Sha256: 38c5cbc5f38646fcb4a7ed2c6c568487f3bbc0a9571c441797455125ebb6893a

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

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

  c.action do |global_options,options,args|
    
    servers = Server.find(args).compact

    servers.each do |s|
      info "Stopping server #{s}"
      s.stop
      s.reload
    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-stop.rb
bbcloud-0.8.1 lib/bbcloud/commands/servers-stop.rb
bbcloud-0.8 lib/bbcloud/commands/servers-stop.rb
bbcloud-0.7 lib/bbcloud/commands/servers-stop.rb
bbcloud-0.6.2 lib/bbcloud/commands/servers-stop.rb