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.57.1 lib/awspec/cli.rb
awspec-0.57.0 lib/awspec/cli.rb
awspec-0.56.1 lib/awspec/cli.rb
awspec-0.56.0 lib/awspec/cli.rb
awspec-0.55.0 lib/awspec/cli.rb
awspec-0.54.0 lib/awspec/cli.rb
awspec-0.52.4 lib/awspec/cli.rb
awspec-0.52.3 lib/awspec/cli.rb
awspec-0.52.2 lib/awspec/cli.rb
awspec-0.52.1 lib/awspec/cli.rb
awspec-0.52.0 lib/awspec/cli.rb
awspec-0.51.0 lib/awspec/cli.rb
awspec-0.50.0 lib/awspec/cli.rb
awspec-0.49.0 lib/awspec/cli.rb
awspec-0.48.0 lib/awspec/cli.rb
awspec-0.47.0 lib/awspec/cli.rb
awspec-0.46.0 lib/awspec/cli.rb
awspec-0.45.0 lib/awspec/cli.rb
awspec-0.44.0 lib/awspec/cli.rb
awspec-0.43.0 lib/awspec/cli.rb