class Dockistrano::CommandLine
Public Class Methods
command_with_interaction(command)
click to toggle source
# File lib/dockistrano/command_line.rb, line 18 def self.command_with_interaction(command) debug(command) Kernel.exec(command) end
command_with_result(command)
click to toggle source
# File lib/dockistrano/command_line.rb, line 5 def self.command_with_result(command) debug(command) `#{command}` end
command_with_stream(command)
click to toggle source
# File lib/dockistrano/command_line.rb, line 10 def self.command_with_stream(command) debug(command) begin Kernel.system(command) rescue Interrupt end end
debug(command)
click to toggle source
# File lib/dockistrano/command_line.rb, line 23 def self.debug(command) puts "$ #{command}" if false end