Class: NotifyPush::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/notify-push/cli.rb

Overview


CLASS->CLI (THOR) —————————-


Instance Method Summary collapse

Instance Method Details

#install(component) ⇒ Object



92
93
94
# File 'lib/notify-push/cli.rb', line 92

def install(component)
  puts "installing..."
end

#receiveObject



70
71
72
# File 'lib/notify-push/cli.rb', line 70

def receive()
  NotifyPush.main :receive
end

#send(message, title = "notify-push") ⇒ Object



80
81
82
83
84
# File 'lib/notify-push/cli.rb', line 80

def send(message, title="notify-push")

  # FIX: Use these arguments instead of ARGV
  NotifyPush.main :send
end

#uninstall(component) ⇒ Object



100
101
102
# File 'lib/notify-push/cli.rb', line 100

def uninstall(component)
  puts "uninstalling..."
end

#versionObject



58
59
60
# File 'lib/notify-push/cli.rb', line 58

def version()
  puts ::NotifyPush::VERSION
end