sesh 0.1.2 → 0.1.3
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/lib/sesh/cli.rb +3 -3
- data/lib/sesh/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: f719b7b8f5d813744e6e4fa06692a451e02dc968
|
4
|
+
data.tar.gz: 87c8766d0893aab61e21be1acd4b82440a6da87e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2d33b8054dfbc82e0bebd941e03d7f8b20f15fdc02eb1fa7c1f27f8a75c3b73119abc687fea1be3cf14ba44b6d798899f494883f9b4eff9251d94e61d2c1c2
|
7
|
+
data.tar.gz: c5448de9d6425c53f68f435271c7c79e3939ba41baed1d66dd84c3916b5cdcb78a21e85dcaed812b0c78158b953d0b0f588bbd8206c940b79e3383513444525a
|
data/Gemfile.lock
CHANGED
data/lib/sesh/cli.rb
CHANGED
@@ -77,14 +77,14 @@ module Sesh
|
|
77
77
|
end
|
78
78
|
when 'list'
|
79
79
|
output = Sesh.format_and_run_command <<-BASH
|
80
|
-
ps aux | grep tmux | grep "
|
81
|
-
|
|
80
|
+
ps aux | grep tmux | grep "sesh begin" | grep -v "[g]rep" \
|
81
|
+
| sed -e "s/.*\\/tmp\\/\\(.*\\)\\.sock.*/\\1/"
|
82
82
|
BASH
|
83
83
|
running_projects = output.split("\n")
|
84
84
|
pcount = running_projects.count
|
85
85
|
if pcount > 0
|
86
86
|
Logger.success "#{pcount} project#{pcount>1 ? 's':''} currently running:"
|
87
|
-
running_projects.each {|rp| Logger.info rp, 1 }
|
87
|
+
puts; running_projects.each {|rp| Logger.info rp, 1 }
|
88
88
|
puts
|
89
89
|
else
|
90
90
|
Logger.fatal "There are no Sesh projects currently running."
|
data/lib/sesh/version.rb
CHANGED