Sha256: 59887795594d51c68642346d1d0430719f0bc440bb22ea5f8bf28ea8891e38e8

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

desc 'List types'
arg_name '[type-id...]'
command [:list] do |c|
  c.action do |global_options,options,args|

    if args.empty?
      types = Type.find :all
    else
      types = Type.find_or_call(args) do |id|
        warn "Couldn't find type #{id}"
      end
    end

    render_table(types, global_options)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bbcloud-0.10.1 lib/bbcloud/commands/types-list.rb
bbcloud-0.9.2 lib/bbcloud/commands/types-list.rb
bbcloud-0.9.1 lib/bbcloud/commands/types-list.rb
bbcloud-0.9 lib/bbcloud/commands/types-list.rb