Class: Rundoc::CodeCommand::Background::Log::Read
- Inherits:
-
Rundoc::CodeCommand
- Object
- Rundoc::CodeCommand
- Rundoc::CodeCommand::Background::Log::Read
- Defined in:
- lib/rundoc/code_command/background/log/read.rb
Constant Summary
Constants inherited from Rundoc::CodeCommand
Instance Attribute Summary
Attributes inherited from Rundoc::CodeCommand
#command, #contents, #keyword, #original_args, #render_command, #render_result
Instance Method Summary collapse
- #call(env = {}) ⇒ Object
-
#initialize(name:) ⇒ Read
constructor
A new instance of Read.
- #to_md(env = {}) ⇒ Object
Methods inherited from Rundoc::CodeCommand
Constructor Details
#initialize(name:) ⇒ Read
Returns a new instance of Read.
3 4 5 |
# File 'lib/rundoc/code_command/background/log/read.rb', line 3 def initialize(name:) @spawn = Rundoc::CodeCommand::Background::ProcessSpawn.find(name) end |
Instance Method Details
#call(env = {}) ⇒ Object
11 12 13 |
# File 'lib/rundoc/code_command/background/log/read.rb', line 11 def call(env = {}) @spawn.log.read end |
#to_md(env = {}) ⇒ Object
7 8 9 |
# File 'lib/rundoc/code_command/background/log/read.rb', line 7 def to_md(env = {}) "" end |