Sha256: a1aea23a914ba208006c91dd6a01274da9c3edb1b6cf646b79f24c3ad38013d4
Contents?: true
Size: 875 Bytes
Versions: 4
Compression:
Stored size: 875 Bytes
Contents
require "thor" module Tagenv class CLI < Thor map '--version' => :version default_task :load def initialize(args = [], options = {}, config = {}) super(args, options, config) @global_options = config[:shell].base.options end desc 'load', 'load' option :prefix, aliases: '-p', default: 'EC2TAG_',type: :string, desc: 'prefix' option :instance_id, aliases: '-i', type: :string, desc: 'instance_id' option :provider, type: :string, default: 'ec2', desc: 'provider' option :print, aliases: '-P', default: false, type: :boolean, desc: 'print' def load Tagenv.load( prefix: options[:prefix], instance_id: options[:instance_id], provider: options[:provider] ) p ENV if options[:print] end desc 'version', 'show version' def version puts VERSION end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tagenv-0.1.7 | lib/tagenv/cli.rb |
tagenv-0.1.6 | lib/tagenv/cli.rb |
tagenv-0.1.5 | lib/tagenv/cli.rb |
tagenv-0.1.4 | lib/tagenv/cli.rb |