tagrity 0.3.5 → 0.3.6
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/Gemfile.lock +1 -1
- data/TODO.md +1 -0
- data/lib/tagrity/cli.rb +2 -1
- data/lib/tagrity/commands/stop.rb +4 -4
- data/lib/tagrity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f336a964ceb069f321079515fd53727a559cba27bd4847dfb4365ac36801d5e6
|
4
|
+
data.tar.gz: 5b7933793a67a70b24f0dff75a364995250fae7cf7ff370439b302431d356d6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61165ba9fd0cca34745880a57a6c0bbcb2238cff025f4ccf49f4ca1d50744ff755d96d94ed98e31deafe35d7aae9cf5994385d150ba6ed0fd03b720d0910e395
|
7
|
+
data.tar.gz: c6eab58ef68547cb2aab02679c4e3f8fa070a39c9997c0ff3cef8e5a20bdb04ee391d611f4733a6bec47f9a2cbd5649a97443ee1fed0eeb2f95d46ee0aece2d9
|
data/Gemfile.lock
CHANGED
data/TODO.md
CHANGED
data/lib/tagrity/cli.rb
CHANGED
@@ -21,8 +21,9 @@ module Tagrity
|
|
21
21
|
end
|
22
22
|
|
23
23
|
desc "stop", "Stop watching 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"
|
@@ -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/version.rb
CHANGED