Class: Rundoc::CodeCommand::Background::StartArgs
- Inherits:
-
Object
- Object
- Rundoc::CodeCommand::Background::StartArgs
- Defined in:
- lib/rundoc/code_command/background/start.rb
Instance Attribute Summary collapse
-
#allow_fail ⇒ Object
readonly
Returns the value of attribute allow_fail.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#wait ⇒ Object
readonly
Returns the value of attribute wait.
Instance Method Summary collapse
-
#initialize(command, name:, wait: nil, timeout: 5, log: Tempfile.new("log"), out: "2>&1", allow_fail: false) ⇒ StartArgs
constructor
A new instance of StartArgs.
Constructor Details
#initialize(command, name:, wait: nil, timeout: 5, log: Tempfile.new("log"), out: "2>&1", allow_fail: false) ⇒ StartArgs
Returns a new instance of StartArgs.
9 10 11 12 13 14 15 16 17 |
# File 'lib/rundoc/code_command/background/start.rb', line 9 def initialize(command, name:, wait: nil, timeout: 5, log: Tempfile.new("log"), out: "2>&1", allow_fail: false) @command = command @name = name @wait = wait @timeout = timeout @log = log @out = out @allow_fail = allow_fail end |
Instance Attribute Details
#allow_fail ⇒ Object (readonly)
Returns the value of attribute allow_fail.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def allow_fail @allow_fail end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def command @command end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def log @log end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def name @name end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def out @out end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def timeout @timeout end |
#wait ⇒ Object (readonly)
Returns the value of attribute wait.
7 8 9 |
# File 'lib/rundoc/code_command/background/start.rb', line 7 def wait @wait end |