lib/lono/blueprint/new.rb in lono-6.1.5 vs lib/lono/blueprint/new.rb in lono-6.1.6
- old
+ new
@@ -80,9 +80,14 @@
else # lono blueprint new command
directory "../blueprint_configs", "."
end
end
+ def create_license
+ return unless ENV['LONO_LICENSE_FILE']
+ copy_file ENV['LONO_LICENSE_FILE'], "#{@cwd}/#{blueprint_name}/LICENSE.txt"
+ end
+
# After this commands are executed with the newly created project
def set_destination_root
destination_root = "#{@cwd}/#{blueprint_name}"
self.destination_root = destination_root
@old_dir = Dir.pwd # for reset_current_dir