Class: Tlalok::Adapter::Ospi::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tlalok/adapter/ospi/cli.rb

Instance Method Summary collapse

Instance Method Details

#off(station) ⇒ Object



15
16
17
18
# File 'lib/tlalok/adapter/ospi/cli.rb', line 15

def off(station)
  controller = Controller.new
  controller.close station.to_i
end

#on(station) ⇒ Object



8
9
10
11
# File 'lib/tlalok/adapter/ospi/cli.rb', line 8

def on(station)
  controller = Controller.new
  controller.open station.to_i
end