module Idlc::Helpers

def debug(message)

def debug(message)
  stdout.print("#{message}\n") if ENV['DEBUG']
  stdout.flush
end

def err(message)

def err(message)
  stderr.print("#{message}\n")
end

def msg(message)

def msg(message)
  stdout.print("#{message}\n")
  stdout.flush
end

def stderr

def stderr
  $stderr
end

def stdout

def stdout
  $stdout
end

def system_command(*command_args)


Runs given commands using mixlib-shellout
def system_command(*command_args)
  cmd = Mixlib::ShellOut.new(*command_args)
  cmd.run_command
  cmd
end