Module: Bricky::Executor

Extended by:
Executor
Included in:
Executor
Defined in:
lib/bricky/executor.rb

Instance Method Summary collapse

Instance Method Details

#popen(label, command) ⇒ Object



7
8
9
10
11
# File 'lib/bricky/executor.rb', line 7

def popen(label, command)
  execute(command) do |line|
    logger.normal label.rjust(8), ": #{line.chomp}"
  end
end

#system(command) ⇒ Object



13
14
15
16
17
# File 'lib/bricky/executor.rb', line 13

def system(command)
  execute(command) do |line|
    logger.info line.chomp
  end
end

#tty(command) ⇒ Object



19
20
21
# File 'lib/bricky/executor.rb', line 19

def tty(command)
  Kernel.system(command)
end