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.79.1 lib/awspec/cli.rb
awspec-0.79.0 lib/awspec/cli.rb
awspec-0.78.1 lib/awspec/cli.rb
awspec-0.77.1 lib/awspec/cli.rb
awspec-0.77.0 lib/awspec/cli.rb
awspec-0.76.1 lib/awspec/cli.rb
awspec-0.76.0 lib/awspec/cli.rb
awspec-0.75.2 lib/awspec/cli.rb
awspec-0.75.1 lib/awspec/cli.rb
awspec-0.75.0 lib/awspec/cli.rb
awspec-0.74.1 lib/awspec/cli.rb
awspec-0.74.0 lib/awspec/cli.rb
awspec-0.73.2 lib/awspec/cli.rb
awspec-0.73.1 lib/awspec/cli.rb
awspec-0.73.0 lib/awspec/cli.rb
awspec-0.72.0 lib/awspec/cli.rb
awspec-0.71.0 lib/awspec/cli.rb
awspec-0.70.0 lib/awspec/cli.rb
awspec-0.69.1 lib/awspec/cli.rb
awspec-0.69.0 lib/awspec/cli.rb