instance method run

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

run(command, log_action = true)

Executes a command

Example

inside('vendor') do
  run('ln -s ~/edge rails')
end

Parameters

command req
log_action opt = 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

Type at least 2 characters to search.

↑↓ navigate · open · esc close