Class: Gemaker::Cmd::AddCliStructure
- Defined in:
- lib/gemaker/commands/add_cli_structure.rb
Instance Method Summary collapse
Methods inherited from Base
#in_engine_context, #in_normal_context
Methods included from Util
#copy_file, #copy_template, #create_dir, #error, #execute, #execute_in_gem, #gem_root_path, #get_destination_path, #get_template_path, #info, #parse_erb, #remove_in_gem, #utils_path
Instance Method Details
#perform ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/gemaker/commands/add_cli_structure.rb', line 4 def perform return unless @config.cli? copy_template("exe", "exe/#{@config.gem_name}", config: @config) copy_template("cli.rb", "lib/#{@config.gem_name}/cli.rb", config: @config) info "Add CLI structure" end |