class Rundoc::CodeCommand::Background::Log::Clear

Public Class Methods

new(name: ) click to toggle source
# File lib/rundoc/code_command/background/log/clear.rb, line 3
def initialize(name: )
  @spawn = Rundoc::CodeCommand::Background::ProcessSpawn.find(name)
end

Public Instance Methods

call(env = {}) click to toggle source
# File lib/rundoc/code_command/background/log/clear.rb, line 11
def call(env = {})
  @spawn.log.truncate(0)
  ""
end
to_md(env = {}) click to toggle source
# File lib/rundoc/code_command/background/log/clear.rb, line 7
def to_md(env = {})
  ""
end