Class: Helmsnap::Command
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(cmd, stdout: $stdout, stderr: $stderr, allow_failure: false) ⇒ Command
constructor
A new instance of Command.
Methods inherited from Service
Constructor Details
#initialize(cmd, stdout: $stdout, stderr: $stderr, allow_failure: false) ⇒ Command
Returns a new instance of Command.
6 7 8 9 10 11 12 13 |
# File 'lib/helmsnap/command.rb', line 6 def initialize(cmd, stdout: $stdout, stderr: $stderr, allow_failure: false) super() self.cmd = cmd self.output = +"" self.stdout = stdout || null_file self.stderr = stderr || null_file self.allow_failure = allow_failure end |