pec2 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pec2.rb +1 -0
- data/lib/pec2/cli.rb +5 -0
- data/lib/pec2/constants.rb +1 -0
- data/lib/pec2/core.rb +0 -1
- data/lib/pec2/version.rb +1 -1
- 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: af31d5b5049e0e1b7c044ae4bb6d85ea4ff23a22
|
4
|
+
data.tar.gz: b3ba11e52366d13a58bcb2aecb9c5fa715ee16ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 321428bb68278df26eb4c081c3f880d94c4226a67168e52c3dac7482d88f43733de3f346efbb5358c90987aac1fb0b3eaa4687d69c96f234ad21a76a59a99513
|
7
|
+
data.tar.gz: a26f5d2802c3aa76493b35cce6b319dec407650ed117196df8b7eefc47e3c652f31b190bd34ce2b66bf4e94230b112685134df98efe4f60ef4daae8cfa0f8bf6
|
data/lib/pec2.rb
CHANGED
data/lib/pec2/cli.rb
CHANGED
@@ -20,6 +20,7 @@ module Pec2
|
|
20
20
|
option :tag, aliases: '-t', type: :hash, default: {}, desc: 'tag'
|
21
21
|
option :user, aliases: '-u', type: :string, desc: 'user'
|
22
22
|
option :log, aliases: '-o', type: :string, desc: 'log'
|
23
|
+
option :parallel, aliases: '-p', type: :numeric, desc: 'parallel'
|
23
24
|
option :print, aliases: '-P', type: :boolean, default: false, desc: 'print stdout.'
|
24
25
|
def search_tag
|
25
26
|
Tempfile.create("pec2") do |f|
|
@@ -46,6 +47,10 @@ module Pec2
|
|
46
47
|
cmd = "#{cmd} -o #{options[:log]}"
|
47
48
|
end
|
48
49
|
|
50
|
+
if options[:parallel]
|
51
|
+
cmd = "#{cmd} -p #{options[:parallel]}"
|
52
|
+
end
|
53
|
+
|
49
54
|
if options[:sudo_password]
|
50
55
|
cmd = %Q{(echo #{options[:sudo_password]}) | #{cmd} -I '#{options[:command]}'}
|
51
56
|
else
|
data/lib/pec2/constants.rb
CHANGED
data/lib/pec2/core.rb
CHANGED
data/lib/pec2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toyama0919
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|