module Idlc::Helpers

Public Instance Methods

debug(message) click to toggle source
# File lib/idlc-sdk-core/helpers.rb, line 23
def debug(message)
  stdout.print("#{message}\n") if ENV['DEBUG']
  stdout.flush
end
err(message) click to toggle source
# File lib/idlc-sdk-core/helpers.rb, line 14
def err(message)
  stderr.print("#{message}\n")
end
msg(message) click to toggle source
# File lib/idlc-sdk-core/helpers.rb, line 18
def msg(message)
  stdout.print("#{message}\n")
  stdout.flush
end
stderr() click to toggle source
# File lib/idlc-sdk-core/helpers.rb, line 32
def stderr
  $stderr
end
stdout() click to toggle source
# File lib/idlc-sdk-core/helpers.rb, line 28
def stdout
  $stdout
end
system_command(*command_args) click to toggle source

Runs given commands using mixlib-shellout

# File lib/idlc-sdk-core/helpers.rb, line 8
def system_command(*command_args)
  cmd = Mixlib::ShellOut.new(*command_args)
  cmd.run_command
  cmd
end