Sha256: d29049a37d20962c1896e9e5448a3616afe99f648624550d2403dfcd536be323
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 Bytes
Contents
require 'thor' require_relative 'nugem/git' require_relative 'nugem/repository' require_relative 'nugem/version' require_relative 'util' module Nugem # @return Path to the generated gem def self.dest_root(gem_name) File.expand_path "generated/#{gem_name}" end class Cli < Thor include Thor::Actions package_name 'Nugem' # These declarations make the class instance variable values available as an accessor, # which is necessary to name template files that are named '%variable_name%.extension'. # See https://www.rubydoc.info/gems/thor/Thor/Actions#directory-instance_method attr_reader :block_name, :filter_name, :generator_name, :tag_name, :test_framework class << self def test_option(default_value) method_option :test_framework, type: :string, default: default_value, enum: %w[minitest rspec], desc: "Use rspec or minitest for the test framework (default is #{default_value})." end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nugem-0.8.1 | lib/nugem.rb |
nugem-0.8.0 | lib/nugem.rb |