Class: HueCommand
- Inherits:
-
Thor
- Object
- Thor
- HueCommand
- Defined in:
- lib/ha/hue_command.rb
Overview
The ‘hue’ commmands
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/ha/hue_command.rb', line 7 def list hue = Hue.new(context, Hue.bridge_state) table = CliTable.new table.headers = list_headers table.rows = hue.all_a list_headers table.column_widths = column_widths puts table.render end |
#pair ⇒ Object
17 18 19 |
# File 'lib/ha/hue_command.rb', line 17 def pair Hue.new(context).pair end |