Class: JsonVoorhees::CreateEngineGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/json_voorhees/create_engine/create_engine_generator.rb

Instance Method Summary collapse

Instance Method Details

#sprintObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/json_voorhees/create_engine/create_engine_generator.rb', line 6

def sprint
	inside "" do
		run "rails plugin new engines/#{module_snake} --mountable"
	end
	inside "engines/#{module_snake}" do
		add_dependency
		run "rails g json_voorhees:setup_engine #{module_snake}"
	end
	inside "config" do
		mount
	end
	inside "" do
		gem "#{module_snake}", :path => "engines/#{module_snake}"
		run "bundle install"
	end
end