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-1.25.1 lib/awspec/cli.rb
awspec-1.25.0 lib/awspec/cli.rb
awspec-1.24.4 lib/awspec/cli.rb
awspec-1.24.3 lib/awspec/cli.rb
awspec-1.24.2 lib/awspec/cli.rb
awspec-1.24.1 lib/awspec/cli.rb
awspec-1.24.0 lib/awspec/cli.rb
awspec-1.23.0 lib/awspec/cli.rb
awspec-1.22.1 lib/awspec/cli.rb
awspec-1.22.0 lib/awspec/cli.rb
awspec-1.21.1 lib/awspec/cli.rb
awspec-1.21.0 lib/awspec/cli.rb
awspec-1.20.0 lib/awspec/cli.rb
awspec-1.19.2 lib/awspec/cli.rb
awspec-1.19.1 lib/awspec/cli.rb
awspec-1.19.0 lib/awspec/cli.rb
cthiesfork-awspec-1.2.4 lib/awspec/cli.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/cli.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/cli.rb
awspec-1.18.6 lib/awspec/cli.rb