Sha256: a413615c20bb37feaafd267f6b3f4b3d66847855183d3a202910449fd3cd1761

Contents?: true

Size: 348 Bytes

Versions: 12

Compression:

Stored size: 348 Bytes

Contents

class CLI < Thor
  check_unknown_options!

  def self.exit_on_failure?
    true
  end

  desc "new PATH", "Create a new gem"
  def new(path)
    generator = Generator.new
    generator.destination_root = File.expand_path(path)
    generator.options = options
    generator.invoke_all
  end

  no_commands do
    # Add helper methods here
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dopstick-0.0.12 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.11 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.10 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.9 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.8 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.7 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.6 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.5 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.4 lib/dopstick/generator/gem/templates/cli_class.erb
dopstick-0.0.3 lib/dopstick/templates/cli_class.erb
dopstick-0.0.2 lib/dopstick/templates/cli_class.erb
dopstick-0.0.1 lib/dopstick/templates/cli_class.erb