tagrity 0.3.2 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/TODO.md +1 -3
- data/lib/tagrity/cli.rb +7 -6
- data/lib/tagrity/commands/{init.rb → revive.rb} +1 -1
- data/lib/tagrity/commands/stop.rb +4 -4
- data/lib/tagrity/pid_file.rb +1 -1
- data/lib/tagrity/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e7a19c450d56f1edfad77d0197b896a54bff22c1d93470f0f87ad73b39cad9
|
4
|
+
data.tar.gz: f4e895c3b71364b4aa2c19ec37ade02bc5e6d51501be21dd143058c89007b72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f8877beea1429b73905cb96334134636999a5f262d54633c70a0e6f6ab9f5d90d729b81755d81ea226a4f6f8e4ecbfa262ff34c5820cc8f4436a4c22550a712
|
7
|
+
data.tar.gz: 037517b1bde73d9b067c64925576033cf75f055eafe56574b839625cb190d32ec4e25107bcc9ad25d2ee2da7b99826656fe4cd9d5330ddd0f4130c8085b8b0a5
|
data/Gemfile.lock
CHANGED
data/TODO.md
CHANGED
data/lib/tagrity/cli.rb
CHANGED
@@ -3,7 +3,7 @@ require 'tagrity/commands/start'
|
|
3
3
|
require 'tagrity/commands/stop'
|
4
4
|
require 'tagrity/commands/status'
|
5
5
|
require 'tagrity/commands/logs'
|
6
|
-
require 'tagrity/commands/
|
6
|
+
require 'tagrity/commands/revive'
|
7
7
|
require 'tagrity/version'
|
8
8
|
|
9
9
|
module Tagrity
|
@@ -20,9 +20,10 @@ module Tagrity
|
|
20
20
|
Command::Start::call(options['fg'], options['fresh'])
|
21
21
|
end
|
22
22
|
|
23
|
-
desc "stop", "Stop watching pwd"
|
23
|
+
desc "stop", "Stop watching a directory (default to pwd)"
|
24
|
+
option :dir, type: :string, default: Dir.pwd, desc: "directory to stop watching."
|
24
25
|
def stop()
|
25
|
-
Command::Stop::call
|
26
|
+
Command::Stop::call(options['dir'])
|
26
27
|
end
|
27
28
|
|
28
29
|
desc "status", "List running tagrity processes and the directories being watched"
|
@@ -37,9 +38,9 @@ module Tagrity
|
|
37
38
|
Command::Logs::call(options['n'], options['debug'])
|
38
39
|
end
|
39
40
|
|
40
|
-
desc "
|
41
|
-
def
|
42
|
-
Command::
|
41
|
+
desc "revive", "Restart any tagrity processes that died"
|
42
|
+
def revive
|
43
|
+
Command::Revive::call
|
43
44
|
end
|
44
45
|
end
|
45
46
|
end
|
@@ -6,16 +6,16 @@ module Tagrity
|
|
6
6
|
module Command
|
7
7
|
class Stop
|
8
8
|
class << self
|
9
|
-
def call
|
10
|
-
dir = Dir.pwd
|
9
|
+
def call(dir)
|
11
10
|
pid_files = PidFile.alive_pid_files(dir: dir)
|
12
11
|
if pid_files.empty?
|
13
12
|
puts ::CLI::UI.fmt "{{red:#{"😕 tagrity doesn't seem to be watching #{dir}"}}}"
|
14
13
|
else
|
15
14
|
pid_files.each do |pid_file|
|
16
15
|
pid_file.delete
|
17
|
-
|
18
|
-
|
16
|
+
msg = "Successfully killed #{pid_file.pid} for dir #{dir}"
|
17
|
+
puts ::CLI::UI.fmt "{{green:#{msg}}}"
|
18
|
+
logger.info(msg)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/tagrity/pid_file.rb
CHANGED
data/lib/tagrity/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagrity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam P. Regasz-Rethy
|
@@ -147,8 +147,8 @@ files:
|
|
147
147
|
- exe/tagrity
|
148
148
|
- lib/tagrity.rb
|
149
149
|
- lib/tagrity/cli.rb
|
150
|
-
- lib/tagrity/commands/init.rb
|
151
150
|
- lib/tagrity/commands/logs.rb
|
151
|
+
- lib/tagrity/commands/revive.rb
|
152
152
|
- lib/tagrity/commands/start.rb
|
153
153
|
- lib/tagrity/commands/status.rb
|
154
154
|
- lib/tagrity/commands/stop.rb
|