Sha256: 85862de2592e31712b2242406efe91d9f613945adf9250188776531ba6997e19

Contents?: true

Size: 443 Bytes

Versions: 10

Compression:

Stored size: 443 Bytes

Contents

module Brightbox
  desc 'Show detailed server info'
  arg_name 'server-id...'
  command [:show] do |c|

    c.action do |global_options,options,args|

      raise "You must specify servers to show" if args.empty?

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

      table_opts = global_options.merge(:vertical => true)
      render_table(servers, table_opts)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/servers-show.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/servers-show.rb