Class: BotCli

Inherits:
Object
  • Object
show all
Defined in:
lib/bot_cli.rb

Instance Method Summary collapse

Instance Method Details

#delete(args) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/bot_cli.rb', line 18

def delete(args)
  guid = args[0]
  if (guid == nil || guid.empty?)
    $stderr.puts "Missing guid of bot to delete"
    exit 1
  end
  BotBuilder.instance.delete_bot guid
end

#devices(args) ⇒ Object



31
32
33
# File 'lib/bot_cli.rb', line 31

def devices(args)
  BotBuilder.instance.devices
end

#status(args) ⇒ Object



27
28
29
# File 'lib/bot_cli.rb', line 27

def status(args)
  BotBuilder.instance.status
end

#sync_github(args) ⇒ Object



35
36
37
# File 'lib/bot_cli.rb', line 35

def sync_github(args)
  BotGithub.instance.sync
end