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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b1bffa00c3c31cfd831c7fcaced7cc4f6ea2e27
4
- data.tar.gz: 1803e9494d00be21ceebbd048c5d0c48c5bc911f
3
+ metadata.gz: d3c0375b68da8ec486a8bafccd66ee1a43d3a0fa
4
+ data.tar.gz: cb65e3d25f445b5eda6d296977fe90c8dc9c7d34
5
5
  SHA512:
6
- metadata.gz: e02b9404c072aa260268beac813cae68fab29817bd86a28c5ea7c2c2a9eb3c99c11053161944d52514028093f81e83a9a12357728a9ba2903374248f4b485728
7
- data.tar.gz: c2c8c022683aefc478775c91494ba2f5280c48f7ab1015c7e100e7e0d150658b31145606f8220fc0207c60304dc54f6c5a7b6c573d8a18364b4bc07a195630df
6
+ metadata.gz: b715ddf6c25844cf64489ad6f617f3cfd3af80cf65f1aad24f2b95bf8abcb49afc83042ce05125c3693047958348dc8891dc998f7fece3f6e088ef8503a3a198
7
+ data.tar.gz: d09d2b54a31feccf52b61038a559b57163b895c91974c52556f6d2dc460f33a003063d3e6887136a9f0788b828925c3512f91160b9b2e56a5f6f0bc05f18b950
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.11 (2017-03-09)
2
+
3
+ Enhancements:
4
+
5
+ * Use Parallel::ProcessorCount instead of Facter gem
6
+
1
7
  # 0.4.10 (2017-03-09)
2
8
 
3
9
  Fixes:
data/kondate.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'serverspec'
24
24
  spec.add_dependency 'thor'
25
25
  spec.add_dependency 'highline'
26
- spec.add_dependency 'facter'
27
26
  spec.add_dependency 'parallel'
28
27
 
29
28
  spec.add_development_dependency "bundler"
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 => Facter['processorcount'].value.to_i
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 => Facter['processorcount'].value.to_i
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
@@ -1,3 +1,3 @@
1
1
  module Kondate
2
- VERSION = "0.4.10"
2
+ VERSION = "0.4.11"
3
3
  end
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.10
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