Class: Objctify::Command::Init
- Inherits:
-
Objctify::Command
- Object
- CLAide::Command
- Objctify::Command
- Objctify::Command::Init
- Defined in:
- lib/objctify/command/init.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/objctify/command/init.rb', line 14 def run template_path = "#{File.dirname(__FILE__)}/../templates/Objctifile-template" contents = File.read(template_path) File.write('Objctifile', contents) puts 'Have fun!' end |