Class: Rubycam::CLI::Commands::Info
- Inherits:
-
VideoCommand
- Object
- Dry::CLI::Command
- VideoCommand
- Rubycam::CLI::Commands::Info
- Defined in:
- lib/rubycam/cli.rb
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
81 82 83 84 85 86 |
# File 'lib/rubycam/cli.rb', line 81 def call(**) with_device() do |dev| { path: dev.path, driver: dev.driver, card: dev.card, bus: dev.bus_info }.each { |k, v| puts format('%-8s %s', "#{k}:", v) } end end |