Sha256: ff6b80bb2ae38300a9375166457961908e00c8bb32b2e2f5ca944c607be2c5e9

Contents?: true

Size: 384 Bytes

Versions: 7

Compression:

Stored size: 384 Bytes

Contents

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

  c.action do |global_options,options,args|
    
    raise "You must specify servers to start" if args.empty?

    servers = Server.find_or_call(args) do |id|
      raise "Couldn't find server #{id}"
    end

    servers.each do |s|
      info "Starting server #{s}"
      s.start
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bbcloud-0.11.2 lib/bbcloud/commands/servers-start.rb
bbcloud-0.11.1 lib/bbcloud/commands/servers-start.rb
bbcloud-0.11.0 lib/bbcloud/commands/servers-start.rb
bbcloud-0.10.1 lib/bbcloud/commands/servers-start.rb
bbcloud-0.9.2 lib/bbcloud/commands/servers-start.rb
bbcloud-0.9.1 lib/bbcloud/commands/servers-start.rb
bbcloud-0.9 lib/bbcloud/commands/servers-start.rb