safit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -3
- data/lib/safit/cli.rb +8 -2
- data/lib/safit/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -6,10 +6,11 @@
|
|
6
6
|
|____/ \__|_|\___|_|\_\ \__,_| |_| \___/|_| |_|\_\ |_|_| |_| |_|\__|
|
7
7
|
|
8
8
|
|
9
|
-
safit is short for (S)tick (a) (f)ork (i)n i(t).
|
10
|
-
|
11
9
|
safit is a command line utility to send notifications. It can be used to
|
12
|
-
notify when a long running command is finished for example.
|
10
|
+
notify when a long running command is finished for example. Because when
|
11
|
+
your command is fully baked, its time to stick a fork in it.
|
12
|
+
|
13
|
+
safit is roughly short for (S)tick (a) (f)ork (i)n i(t).
|
13
14
|
|
14
15
|
# Installation
|
15
16
|
|
data/lib/safit/cli.rb
CHANGED
@@ -21,12 +21,12 @@ require_relative 'gntp'
|
|
21
21
|
|
22
22
|
module Safit
|
23
23
|
class Cli < Thor
|
24
|
-
desc "notify", "send
|
24
|
+
desc "notify MESSAGE", "send given message to growl"
|
25
25
|
def notify(message)
|
26
26
|
Safit::Gntp.notify message
|
27
27
|
end
|
28
28
|
|
29
|
-
desc "exec", "run command send alert"
|
29
|
+
desc "exec COMMAND", "run command and send alert when it finishes"
|
30
30
|
def exec(*command)
|
31
31
|
cmd = command.join(' ')
|
32
32
|
|
@@ -38,6 +38,12 @@ module Safit
|
|
38
38
|
Safit::Gntp.notify $?.success? ? "DONE: #{cmd}" : "FAIL: #{cmd}"
|
39
39
|
exit $?.exitstatus
|
40
40
|
end
|
41
|
+
|
42
|
+
desc "done", "send a notification saying 'done'"
|
43
|
+
def done
|
44
|
+
Safit::Gntp.notify 'done'
|
45
|
+
end
|
46
|
+
default_task :done
|
41
47
|
end
|
42
48
|
end
|
43
49
|
|
data/lib/safit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|