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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eeb4b02d115076a7ea50ac3189904cbba618eb8
4
- data.tar.gz: 82d4ed904df6673285f48531bc667b89fd332e69
3
+ metadata.gz: 18ab8b7e2791a9d95c00dc7a739d23b2022135e7
4
+ data.tar.gz: f283a8c0f16dd22e39288fc49a54348a11b178f5
5
5
  SHA512:
6
- metadata.gz: b2ab6c05f23b2d0d37495cbc10f64544198ec9843e65c5b1db6767d3d96fe34d06ca2eee7e2f73a1de96966fc6b2c07145a54b01949bc90efc48030114e11d14
7
- data.tar.gz: 70621efbedce94645d2f0043f51c3c7866257b31732e9d0d04e8b47bc8e6ca0ab69e7f5fe593c2339de340c194da916906296bf5c3a799013cce79ae52f44b1b
6
+ metadata.gz: 9fef1442cd600794cd96ba16a85e1af9ff7a8b4d4bf1e4ad43d5237a556221d7a6b15cab33aa38b3a9218c9483caf9fc1ab086c45c28d4030786bbcb24e8beb5
7
+ data.tar.gz: 25f2afe9f262a6311472fbf419e303340cd6c82522307ca3a1583a2c239d04274f50e0837734feff4d1cd2fc8d4115eb5007b38db50561f463e6b9db7a67c1bc
data/bin/notify_me CHANGED
@@ -6,6 +6,7 @@ require 'notifyor/remote/connection'
6
6
  begin
7
7
  cli = ::Notifyor::CLI.new
8
8
  cli.boot_system
9
+ cli.parse
9
10
  cli.check_notifications
10
11
  rescue => e
11
12
  STDERR.puts e.message
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|
@@ -5,7 +5,7 @@ module Notifyor
5
5
  extend self
6
6
 
7
7
  def create_growl(title, message)
8
- %x(terminal-notifier -title '#{title}' -message '#{message}')
8
+ %x(terminal-notifier -title '#{title}' -message '#{message} -contentImage http://i.imgur.com/FrRacwt.png?1')
9
9
  end
10
10
 
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Notifyor
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifyor
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erwin Schens