notifyor 0.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/notify_me +1 -0
- data/lib/notifyor/cli.rb +15 -0
- data/lib/notifyor/growl/adapters/terminal_notifier.rb +1 -1
- data/lib/notifyor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ab8b7e2791a9d95c00dc7a739d23b2022135e7
|
4
|
+
data.tar.gz: f283a8c0f16dd22e39288fc49a54348a11b178f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fef1442cd600794cd96ba16a85e1af9ff7a8b4d4bf1e4ad43d5237a556221d7a6b15cab33aa38b3a9218c9483caf9fc1ab086c45c28d4030786bbcb24e8beb5
|
7
|
+
data.tar.gz: 25f2afe9f262a6311472fbf419e303340cd6c82522307ca3a1583a2c239d04274f50e0837734feff4d1cd2fc8d4115eb5007b38db50561f463e6b9db7a67c1bc
|
data/bin/notify_me
CHANGED
data/lib/notifyor/cli.rb
CHANGED
@@ -10,6 +10,21 @@ module Notifyor
|
|
10
10
|
::Rails.application.eager_load!
|
11
11
|
end
|
12
12
|
|
13
|
+
def parse
|
14
|
+
OptionParser.new do |opts|
|
15
|
+
opts.banner = 'Usage: notify_me [options]'
|
16
|
+
|
17
|
+
opts.on('-v', '--version',
|
18
|
+
'Show the current version of this gem') do
|
19
|
+
puts "Notifyor Version: #{::Notifyor::VERSION}"; exit
|
20
|
+
end
|
21
|
+
|
22
|
+
opts.on('--ssh-host host', 'Provide the host address to your deployment/remote server') do |host|
|
23
|
+
ENV['ssh_host'] = host
|
24
|
+
end
|
25
|
+
end.parse!
|
26
|
+
end
|
27
|
+
|
13
28
|
def check_notifications
|
14
29
|
loop do
|
15
30
|
::Notifyor.configuration.notifyor_models.each do |model|
|
data/lib/notifyor/version.rb
CHANGED