Class: Objctify::Command::Init

Inherits:
Objctify::Command show all
Defined in:
lib/objctify/command/init.rb

Instance Method Summary collapse

Instance Method Details

#runObject



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