instance method
run
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
run(command, log_action = true)
Executes a command
Example
inside('vendor') do run('ln -s ~/edge rails') end
Parameters
-
commandreq -
log_actionopt = true
Source
# File railties/lib/rails_generator/generators/applications/app/template_runner.rb, line 243
def run(command, log_action = true)
log 'executing', "#{command} from #{Dir.pwd}" if log_action
`#{command}`
end
Defined in railties/lib/rails_generator/generators/applications/app/template_runner.rb line 243
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::TemplateRunner