Method: Thor::Actions#run_ruby_script

Defined in:
lib/thor/actions.rb

#run_ruby_script(command, config = {}) ⇒ Object

Executes a ruby script (taking into account WIN32 platform quirks).

Parameters

command<String>

the command to be executed.

config<Hash>

give :verbose => false to not log the status.



267
268
269
270
# File 'lib/thor/actions.rb', line 267

def run_ruby_script(command, config = {})
  return unless behavior == :invoke
  run command, config.merge(:with => Thor::Util.ruby_command)
end