Module: Idlc::Helpers
- Included in:
- AWSLambdaProxy, AWSRestClient, Utility, Workspace, ZipFileGenerator
- Defined in:
- lib/idlc-sdk-core/helpers.rb
Class Method Summary collapse
- .debug(message) ⇒ Object
- .err(message) ⇒ Object
- .msg(message) ⇒ Object
- .stderr ⇒ Object
- .stdout ⇒ Object
-
.system_command(*command_args) ⇒ Object
Runs given commands using mixlib-shellout.
Class Method Details
.debug(message) ⇒ Object
23 24 25 26 |
# File 'lib/idlc-sdk-core/helpers.rb', line 23 def debug() stdout.print("#{}\n") if ENV['DEBUG'] stdout.flush end |
.err(message) ⇒ Object
14 15 16 |
# File 'lib/idlc-sdk-core/helpers.rb', line 14 def err() stderr.print("#{}\n") end |
.msg(message) ⇒ Object
18 19 20 21 |
# File 'lib/idlc-sdk-core/helpers.rb', line 18 def msg() stdout.print("#{}\n") stdout.flush end |
.stderr ⇒ Object
32 33 34 |
# File 'lib/idlc-sdk-core/helpers.rb', line 32 def stderr $stderr end |
.stdout ⇒ Object
28 29 30 |
# File 'lib/idlc-sdk-core/helpers.rb', line 28 def stdout $stdout end |
.system_command(*command_args) ⇒ Object
Runs given commands using mixlib-shellout
8 9 10 11 12 |
# 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 |