Sha256: 794a455293395f33a92f26e02a1fcf3fd1729fc6fba26223ca0d05fcdabd4837

Contents?: true

Size: 429 Bytes

Versions: 14

Compression:

Stored size: 429 Bytes

Contents

module Brightbox
  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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.14.1 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.14.0 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.13.1 lib/brightbox-cli/commands/servers-start.rb
brightbox-cli-0.13.0 lib/brightbox-cli/commands/servers-start.rb