class Gemsmith::Generators::CLI
Generates Command Line Interface (CLI
) support.
Public Instance Methods
run()
click to toggle source
# File lib/gemsmith/generators/cli.rb, line 7 def run return unless configuration.dig :generate, :cli template "%gem_name%/bin/%gem_name%.tt" template "%gem_name%/lib/%gem_path%/cli.rb.tt" template "%gem_name%/spec/lib/%gem_path%/cli_spec.rb.tt" cli.chmod "#{gem_name}/bin/#{gem_name}", 0o755 end