Module: ActiveRecord::Acts::ShellscriptExecutable::InstanceMethods
- Defined in:
- lib/acts_as_shellscript_executable/active_record/acts/shellscript_executable.rb
Instance Method Summary collapse
Instance Method Details
#execute! ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/acts_as_shellscript_executable/active_record/acts/shellscript_executable.rb', line 25 def execute! script = configuration[:script] stdout = configuration[:stdout] if configuration[:fork] fork { execute(script, stdout) } # for test Process.wait if ENV['test'] else execute(script, stdout) end end |