Module: Toft::CommandExecutor

Included in:
FileChecker, Node
Defined in:
lib/toft/command_executor.rb

Instance Method Summary collapse

Instance Method Details

#cmd(cmd) ⇒ Object



7
8
9
# File 'lib/toft/command_executor.rb', line 7

def cmd(cmd)
  `#{sudo}#{cmd}`
end

#cmd!(cmd) ⇒ Object



3
4
5
# File 'lib/toft/command_executor.rb', line 3

def cmd!(cmd)
  system "#{sudo}#{cmd}"
end