Sha256: aa7f7d0b2fed60e18329addcd918ad1720929d58302fafeccd3b687d89550a92
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
require 'thor' module Aly class CLI < ::Thor class_option :profile, type: :string, optional: true, aliases: ['-p'], desc: 'select profile' class_option :detail, type: :boolean, optional: true, default: false, aliases: ['-d'], desc: 'show detail infomation in JSON format' class_option :full, type: :boolean, optional: true, default: false, aliases: ['-f'], desc: 'print tables with more infomation' class_option :acl, type: :boolean, optional: true, default: false, aliases: ['-a'], desc: 'show ACL entries' desc 'ecs', 'get ECS information' def ecs(query = nil) App.new.start(options: options, command: :ecs, args: [query]) end desc 'eip', 'get EIP information' def eip(query = nil) App.new.start(options: options, command: :eip, args: [query]) end desc 'slb', 'get SLB information' def slb(query = nil) App.new.start(options: options, command: :slb, args: [query]) end desc 'show', 'show resource information of host' def show(host = nil) App.new.start(options: options, command: :show, args: [host]) end class << self def main(args) start(args) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
aly-0.3.5 | lib/aly/cli.rb |
aly-0.3.4 | lib/aly/cli.rb |
aly-0.3.3 | lib/aly/cli.rb |
aly-0.3.2 | lib/aly/cli.rb |
aly-0.3.1 | lib/aly/cli.rb |
aly-0.3.0 | lib/aly/cli.rb |