Sha256: ca3503c87d4792fabd6b7f0560cfff30a36f2977a12f9d8d88ff9e0f00b66e94

Contents?: true

Size: 496 Bytes

Versions: 215

Compression:

Stored size: 496 Bytes

Contents

require 'thor'
require 'awspec/setup'
require 'awspec/command/generate'

module Awspec
  class CLI < Thor
    desc 'init', 'Generate init files'
    def init
      Awspec::Setup.run
    end

    desc 'generate [resource]', 'Generate AWS resource *_spec.rb'
    subcommand 'generate', Generate
    map 'g' => 'generate'

    option :version, type: :boolean, aliases: :v
    def help(version = nil)
      if version
        puts Awspec::VERSION
      else
        super
      end
    end
  end
end

Version data entries

215 entries across 215 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/cli.rb
awspec-0.86.0 lib/awspec/cli.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/cli.rb
awspec-0.85.3 lib/awspec/cli.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/cli.rb
awspec-0.85.2 lib/awspec/cli.rb
awspec-0.85.1 lib/awspec/cli.rb
awspec-0.85.0 lib/awspec/cli.rb
awspec-0.84.1 lib/awspec/cli.rb
awspec-0.84.0 lib/awspec/cli.rb
awspec-0.83.0 lib/awspec/cli.rb
awspec-0.82.3 lib/awspec/cli.rb
awspec-0.82.2 lib/awspec/cli.rb
awspec-0.82.1 lib/awspec/cli.rb
awspec-0.82.0 lib/awspec/cli.rb
awspec-0.81.1 lib/awspec/cli.rb
awspec-0.81.0 lib/awspec/cli.rb
awspec-0.80.1 lib/awspec/cli.rb
awspec-0.80.0 lib/awspec/cli.rb
awspec-0.79.2 lib/awspec/cli.rb