ft_42 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ft_42.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cabb8cedeff817b61b9d2aef004b42039daf608e
|
4
|
+
data.tar.gz: 3b4aa66865118ef4b38b5d4abd4ab8f3aa236dcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01caef86b60167896f91107cb8be4eaf908bfd77ec3baf484d8a9ef46c037e3afb041b5fb5c425764934a4a754d2136efc71db974cf9c109f157d87e88e853db
|
7
|
+
data.tar.gz: bdecd041f5782420cc2bd27791e2939970e3adbc4c664f103ab15523cc0af21717a3b98e2df999493ec5b8f7ac84e6d1f308cebb477a11292c90848ea503f881
|
data/lib/ft_42.rb
CHANGED
@@ -39,13 +39,14 @@ class FT_42
|
|
39
39
|
user_print = UserPrinter.new(user)
|
40
40
|
user_sessions_print = UserSessionsPrinter.new(user_sessions)
|
41
41
|
if args.size == 1
|
42
|
-
if ENV["TERM_PROGRAM"] == "iTerm.app"
|
43
|
-
system "iterm2-viewer /nfs/intrav2cdn/users/medium_#{args.first}.jpeg"
|
44
|
-
end
|
45
42
|
user_print.all
|
46
43
|
user_sessions_print.all
|
47
44
|
elsif args.second == "sessions"
|
48
45
|
user_sessions_print.sessions
|
46
|
+
elsif args.second == "pic"
|
47
|
+
if ENV["TERM_PROGRAM"] == "iTerm.app"
|
48
|
+
system "iterm2-viewer /nfs/intrav2cdn/users/medium_#{args.first}.jpeg"
|
49
|
+
end
|
49
50
|
else
|
50
51
|
puts"Wrong arguments. Usage ft_42 [USER_LOGIN] [OPTIONAL CMD]"
|
51
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ft_42
|
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
|
- Matias Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|