Class: Rundoc::CodeCommand::Background::StartArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/rundoc/code_command/background/start.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_failObject (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

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def command
  @command
end

#logObject (readonly)

Returns the value of attribute log.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def log
  @log
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def name
  @name
end

#outObject (readonly)

Returns the value of attribute out.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def out
  @out
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def timeout
  @timeout
end

#waitObject (readonly)

Returns the value of attribute wait.



7
8
9
# File 'lib/rundoc/code_command/background/start.rb', line 7

def wait
  @wait
end