kondate 0.4.10 → 0.4.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/kondate.gemspec +0 -1
- data/lib/kondate/cli.rb +5 -3
- data/lib/kondate/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c0375b68da8ec486a8bafccd66ee1a43d3a0fa
|
4
|
+
data.tar.gz: cb65e3d25f445b5eda6d296977fe90c8dc9c7d34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b715ddf6c25844cf64489ad6f617f3cfd3af80cf65f1aad24f2b95bf8abcb49afc83042ce05125c3693047958348dc8891dc998f7fece3f6e088ef8503a3a198
|
7
|
+
data.tar.gz: d09d2b54a31feccf52b61038a559b57163b895c91974c52556f6d2dc460f33a003063d3e6887136a9f0788b828925c3512f91160b9b2e56a5f6f0bc05f18b950
|
data/CHANGELOG.md
CHANGED
data/kondate.gemspec
CHANGED
data/lib/kondate/cli.rb
CHANGED
@@ -6,11 +6,13 @@ require_relative '../kondate'
|
|
6
6
|
require 'fileutils'
|
7
7
|
require 'shellwords'
|
8
8
|
require 'find'
|
9
|
-
require 'facter'
|
10
9
|
require 'parallel'
|
10
|
+
require 'parallel/processor_count'
|
11
11
|
|
12
12
|
module Kondate
|
13
13
|
class CLI < Thor
|
14
|
+
extend Parallel::ProcessorCount
|
15
|
+
|
14
16
|
# cf. http://qiita.com/KitaitiMakoto/items/c6b9d6311c20a3cc21f9
|
15
17
|
def self.exit_on_failure?
|
16
18
|
true
|
@@ -67,7 +69,7 @@ module Kondate
|
|
67
69
|
option :vagrant, :type => :boolean, :default => false
|
68
70
|
option :profile, :type => :string, :default => nil, :desc => "[EXPERIMENTAL] Save profiling data", :banner => "PATH"
|
69
71
|
option :recipe_graph, :type => :string, :default => nil, :desc => "[EXPERIMENTAL] Write recipe dependency graph in DOT", :banner => "PATH"
|
70
|
-
option :parallel, :aliases => ["-p"], :type => :numeric, :default =>
|
72
|
+
option :parallel, :aliases => ["-p"], :type => :numeric, :default => processor_count
|
71
73
|
def itamae_role(role)
|
72
74
|
with_role(role) {|host, property_files| do_itamae(host, property_files) }
|
73
75
|
end
|
@@ -88,7 +90,7 @@ module Kondate
|
|
88
90
|
option :debug, :aliases => ["-d"], :type => :boolean, :default => false
|
89
91
|
option :confirm, :type => :boolean, :default => true
|
90
92
|
option :vagrant, :type => :boolean, :default => false
|
91
|
-
option :parallel, :aliases => ["-p"], :type => :numeric, :default =>
|
93
|
+
option :parallel, :aliases => ["-p"], :type => :numeric, :default => processor_count
|
92
94
|
def serverspec_role(role)
|
93
95
|
with_role(role) {|host, property_files| do_serverspec(host, property_files) }
|
94
96
|
end
|
data/lib/kondate/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kondate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sonots
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: facter
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: parallel
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|