Module: Cream::GeneratorHelper::Executor

Defined in:
lib/generators/cream/helpers/execute_helper.rb

Instance Method Summary collapse

Instance Method Details

#bundle_installObject



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