Sha256: c8f687fd278fe8fce8d6a1df40c991c1abf0a72b768fb6d203f001541be48e90

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

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

  c.action do |global_options,options,args|

    accounts = Account.find(args).compact

    table_opts = global_options.merge({
      :vertical => true,
      :fields => [:id, :name, :cloud_ip_limit, :ram_limit, :ram_used, 
                  :ram_free, :library_ftp_host, :library_ftp_user ]
    })

    render_table(accounts, table_opts)

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bbcloud-0.8.2 lib/bbcloud/commands/accounts-show.rb
bbcloud-0.8.1 lib/bbcloud/commands/accounts-show.rb
bbcloud-0.8 lib/bbcloud/commands/accounts-show.rb
bbcloud-0.7 lib/bbcloud/commands/accounts-show.rb
bbcloud-0.6.2 lib/bbcloud/commands/accounts-show.rb