Module: Cream::GeneratorHelper::Executor
- Defined in:
- lib/generators/cream/helpers/execute_helper.rb
Instance Method Summary collapse
- #bundle_install ⇒ Object
- #execute(command) ⇒ Object
-
#rgen(command) ⇒ Object
rails generate …
Instance Method Details
#bundle_install ⇒ Object
14 15 16 |
# File 'lib/generators/cream/helpers/execute_helper.rb', line 14 def bundle_install run "bundle install" end |
#execute(command) ⇒ Object
9 10 11 12 |
# File 'lib/generators/cream/helpers/execute_helper.rb', line 9 def execute command debug! command run command end |
#rgen(command) ⇒ Object
rails generate …
5 6 7 |
# File 'lib/generators/cream/helpers/execute_helper.rb', line 5 def rgen command execute "rails g #{command}" end |