class ConsoleRunner
Public Instance Methods
remove_file(file)
click to toggle source
# File lib/commons.rb, line 254 def remove_file(file) File.unlink file end
run(cmd)
click to toggle source
# File lib/commons.rb, line 262 def run(cmd) vputs "Executing command: #{cmd}" stdout, stderr, status = Open3.capture3(cmd) return [stdout, stderr, status] end
username()
click to toggle source
# File lib/commons.rb, line 258 def username return `echo $USER`.chomp end