Class: NotifyPush::CLI
- Inherits:
-
Thor
- Object
- Thor
- NotifyPush::CLI
- Defined in:
- lib/notify-push/cli.rb
Overview
CLASS->CLI (THOR) —————————-
Instance Method Summary collapse
- #install(component) ⇒ Object
- #receive ⇒ Object
- #send(message, title = "notify-push") ⇒ Object
- #uninstall(component) ⇒ Object
- #version ⇒ Object
Instance Method Details
#install(component) ⇒ Object
92 93 94 |
# File 'lib/notify-push/cli.rb', line 92 def install(component) puts "installing..." end |
#receive ⇒ Object
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(, 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 |
#version ⇒ Object
58 59 60 |
# File 'lib/notify-push/cli.rb', line 58 def version() puts ::NotifyPush::VERSION end |