class Rundoc::CodeCommand::Background::Wait
Public Class Methods
Source
# File lib/rundoc/code_command/background/wait.rb, line 3 def initialize(name:, wait:, timeout: 5) @name = name @wait = wait @timeout_value = Integer(timeout) @background = nil end
Public Instance Methods
Source
# File lib/rundoc/code_command/background/wait.rb, line 10 def background @background ||= Rundoc::CodeCommand::Background::ProcessSpawn.find(@name) end
Source
# File lib/rundoc/code_command/background/wait.rb, line 18 def call(env = {}) background.wait(@wait, @timeout_value) "" end
Source
# File lib/rundoc/code_command/background/wait.rb, line 14 def to_md(env = {}) "" end