Class: Xcake::Command::Init
- Inherits:
-
Xcake::Command
- Object
- CLAide::Command
- Xcake::Command
- Xcake::Command::Init
- Defined in:
- lib/xcake/command/init.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/xcake/command/init.rb', line 7 def run cakefile_path = "#{File.dirname(__FILE__)}/../resources/Cakefile" cakefile_contents = File.read(cakefile_path) File.write('Cakefile', cakefile_contents) EventHooks.run_hook(:after_cakefile_init) end |