class WoerkClient::CLI
Public Instance Methods
start()
click to toggle source
# File lib/woerk_client.rb, line 29 def start command = WoerkClient::Commands::StartShift.call if command.success? return puts command.result.colorize(:green) end puts command.errors[:start] end
status()
click to toggle source
# File lib/woerk_client.rb, line 51 def status command = WoerkClient::Commands::GetStatus.call if command.success? return puts command.result end puts command.errors[:status] end
stop()
click to toggle source
# File lib/woerk_client.rb, line 40 def stop command = WoerkClient::Commands::StopShift.call if command.success? return puts command.result.colorize(:green) end puts command.errors[:stop] end