Class: Gemaker::Cmd::AddLicense
- Defined in:
- lib/gemaker/commands/add_license.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 |
# File 'lib/gemaker/commands/add_license.rb', line 4 def perform copy_template("LICENSE.txt", "LICENSE.txt") remove_in_gem("MIT-LICENSE") if @config.engine? info "Add LICENSE.txt" end |