class Riffer::Rig::Headless::Host
Constants
- CAPABILITIES
Public Class Methods
(?error: IO, ?json: bool) → void
Source
# File lib/riffer/rig/headless/host.rb, line 14 def initialize(error: $stderr, json: false) @error = error @json = json end
@rbs error: IO @rbs json: bool @rbs return: void
Public Instance Methods
() → Set[Symbol]
Source
# File lib/riffer/rig/headless/host.rb, line 20 def capabilities CAPABILITIES end
@rbs return: Set
(?String? message, ?level: Symbol) → void
Source
# File lib/riffer/rig/headless/host.rb, line 27 def notify(message = nil, level: :info) # In --json the Mirror queues the Notify event onto the Runtime's stream, # where the printer emits it as a line; printing here would duplicate it # on stderr. return if @json @error.puts(message.to_s) end
@rbs message: String? @rbs level: Symbol @rbs return: void
(?String? label) ?{ () → void } → void
Source
# File lib/riffer/rig/headless/host.rb, line 39 def progress(label = nil, &block) @error.puts(label) if label block&.call end
@rbs label: String? @rbs &block: ? () -> void @rbs return: void