Class: Helpers::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/runner.rb

Direct Known Subclasses

Docker, Git

Class Method Summary collapse

Class Method Details

.runcmd(parts) ⇒ Object



5
6
7
8
# File 'lib/runner.rb', line 5

def runcmd parts
  output = IO.popen parts
  return output_lines output
end

.runcmd_old(command, title) ⇒ Object



10
11
12
13
14
15
# File 'lib/runner.rb', line 10

def runcmd_old command, title
  puts "* #{title}"
  puts command
  system command
  puts
end