Class: Rundoc::CodeCommand::Background::Log::Clear
Constant Summary
NEWLINE
Instance Attribute Summary
#command, #contents, #keyword, #original_args, #render_command, #render_result
Instance Method Summary
collapse
#hidden?, #not_hidden?, #push
Constructor Details
#initialize(name:) ⇒ Clear
3
4
5
|
# File 'lib/rundoc/code_command/background/log/clear.rb', line 3
def initialize(name:)
@spawn = Rundoc::CodeCommand::Background::ProcessSpawn.find(name)
end
|
Instance Method Details
#call(env = {}) ⇒ Object
11
12
13
14
|
# File 'lib/rundoc/code_command/background/log/clear.rb', line 11
def call(env = {})
@spawn.log.truncate(0)
""
end
|
#to_md(env = {}) ⇒ Object
7
8
9
|
# File 'lib/rundoc/code_command/background/log/clear.rb', line 7
def to_md(env = {})
""
end
|