module RakeUp::Shell
Public Class Methods
echo_commands=(on_off)
click to toggle source
When true, commands will be echoed before execution
# File lib/rakeup/shell.rb, line 5 def echo_commands=(on_off) @echo_commands = on_off end
echo_commands?()
click to toggle source
# File lib/rakeup/shell.rb, line 9 def echo_commands? @echo_commands end
execute(command)
click to toggle source
# File lib/rakeup/shell.rb, line 13 def execute(command) puts "Executing: `#{command}`" if echo_commands? system(command) end