Class: Textus::Surfaces::CLI::Verb::Watch

Inherits:
Textus::Surfaces::CLI::Verb show all
Defined in:
lib/textus/surfaces/cli/verb/watch.rb

Instance Attribute Summary

Attributes inherited from Textus::Surfaces::CLI::Verb

#positional, #stdin

Instance Method Summary collapse

Methods inherited from Textus::Surfaces::CLI::Verb

command_name, descendants, #emit, #gate_dispatch, inherited, #initialize, needs_store?, option, options, parent_group, #parse, #resolved_role

Constructor Details

This class inherits a constructor from Textus::Surfaces::CLI::Verb

Instance Method Details

#call(store) ⇒ Object



10
11
12
13
14
# File 'lib/textus/surfaces/cli/verb/watch.rb', line 10

def call(store)
  watcher = Textus::Surfaces::Watcher.new(container: store.container)
  watcher.run(poll: poll&.to_f)
  0
end