module Pfm::Helpers
def debug(message)
-
message
(String
) -- the string to print
def debug(message) stdout.print("#{message}\n") if ENV['DEBUG'] end
def err(message)
-
message
(String
) -- the string to print
def err(message) stderr.print("#{message}\n") end
def msg(message)
-
message
(String
) -- the string to print
def msg(message) stdout.print("#{message}\n") end
def stderr
def stderr $stderr end
def stdout
def stdout $stdout end
def system_command(*command_args)
-
command_args
(String
) -- the system command to run
def system_command(*command_args) cmd = Mixlib::ShellOut.new(*command_args) cmd.run_command err(cmd.stderr) msg(cmd.stdout) cmd end