Class: HueCommand

Inherits:
Thor
  • Object
show all
Defined in:
lib/ha/hue_command.rb

Overview

The ‘hue’ commmands

Instance Method Summary collapse

Instance Method Details

#listObject



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

#pairObject



17
18
19
# File 'lib/ha/hue_command.rb', line 17

def pair
  Hue.new(context).pair
end