Sha256: 85ce192cf7105e0ee3125d29b01be4bc5d640280b3001d03384e65513409d679

Contents?: true

Size: 778 Bytes

Versions: 1

Compression:

Stored size: 778 Bytes

Contents

module GemBootstrap
  class MainCLI < Thor
    register GemBootstrap::CLI,
             'generate',
             'generate',
             'Generate the starting template for CLI'

    desc 'usage', 'Display help screen'
    def usage
      generate_usage = <<-EOT

# Usage/Synopsis:
gem_bootstrap [GEM_NAME] -g, --github-id [GITHUB_ID] -e, --email [EMAIL] -a, --author [AUTHOR] --test-framework [FRAMEWORK]

# Create a gem name 'awesome_gem'
gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II'

# Choose test framework --test-framework or -t (defaults to minitest)
gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II' -t rspec

      EOT
      puts generate_usage
    end

    default_task :usage
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gem_bootstrap-0.2.5 lib/gem_bootstrap/gem_bootstrap.rb