class Rundoc::CodeCommand::Background::Log::Clear
Public Class Methods
Source
# File lib/rundoc/code_command/background/log/clear.rb, line 3 def initialize(name:) @name = name @background = nil end
Public Instance Methods
Source
# File lib/rundoc/code_command/background/log/clear.rb, line 8 def background @background ||= Rundoc::CodeCommand::Background::ProcessSpawn.find(@name) end
Source
# File lib/rundoc/code_command/background/log/clear.rb, line 16 def call(env = {}) background.log.truncate(0) "" end
Source
# File lib/rundoc/code_command/background/log/clear.rb, line 12 def to_md(env = {}) "" end