itamae-mitsurin 0.35 → 0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/itamae-mitsurin/mitsurin/itamae_task.rb +7 -5
- data/lib/itamae-mitsurin/mitsurin/itamae_with_git_task.rb +7 -5
- data/lib/itamae-mitsurin/mitsurin/itamae_with_target_task.rb +7 -5
- data/lib/itamae-mitsurin/mitsurin/local_task.rb +7 -5
- data/lib/itamae-mitsurin/mitsurin/serverspec_task.rb +7 -5
- data/lib/itamae-mitsurin/version.txt +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: d035a5bf6fe73ee2c347aa0d3d867bfd8f689666
|
|
4
|
+
data.tar.gz: c662add51008eab10c8de6cb539dbecfbe4fe9ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddd69d0300951a385e922ada278b176fc3425ac49a3f6ecc9a418bb706f7bba3ab3098c0ddb3881bf96f2ac57870b02545d34f5101d5d5dc6f9dc0bf22e29460
|
|
7
|
+
data.tar.gz: 6a00cca54e095d9e9e3ea908d3b49097c5e2830f0faa048015809a2388acc3b383f0ea21120c6dcd1e5d280048f2b7b7e985c056f74e83d32436f6f3cf9d4d6f
|
|
@@ -110,12 +110,14 @@ module ItamaeMitsurin
|
|
|
110
110
|
# recipes load to_command
|
|
111
111
|
command_recipe = []
|
|
112
112
|
recipes.each do |recipe_h|
|
|
113
|
-
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
|
|
114
|
+
Dir.glob(target_recipe).join("\s").split.each do |target|
|
|
115
|
+
unless File.exists?(target)
|
|
116
|
+
ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
|
|
117
|
+
raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
|
|
118
|
+
end
|
|
119
|
+
command_recipe << " #{target}"
|
|
117
120
|
end
|
|
118
|
-
command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
|
|
119
121
|
end
|
|
120
122
|
|
|
121
123
|
command_recipe.sort_by! {|item| File.dirname(item)}
|
|
@@ -119,12 +119,14 @@ module ItamaeMitsurin
|
|
|
119
119
|
# recipe load to_command
|
|
120
120
|
command_recipe = []
|
|
121
121
|
recipes.each do |recipe_h|
|
|
122
|
-
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
|
|
123
|
+
Dir.glob(target_recipe).join("\s").split.each do |target|
|
|
124
|
+
unless File.exists?(target)
|
|
125
|
+
ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
|
|
126
|
+
raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
|
|
127
|
+
end
|
|
128
|
+
command_recipe << " #{target}"
|
|
126
129
|
end
|
|
127
|
-
command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
|
|
128
130
|
end
|
|
129
131
|
|
|
130
132
|
command_recipe.sort_by! {|item| File.dirname(item)}
|
|
@@ -126,12 +126,14 @@ module ItamaeMitsurin
|
|
|
126
126
|
# recipe load to_command
|
|
127
127
|
command_recipe = []
|
|
128
128
|
recipes.each do |recipe_h|
|
|
129
|
-
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
|
|
130
|
+
Dir.glob(target_recipe).join("\s").split.each do |target|
|
|
131
|
+
unless File.exists?(target)
|
|
132
|
+
ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
|
|
133
|
+
raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
|
|
134
|
+
end
|
|
135
|
+
command_recipe << " #{target}"
|
|
133
136
|
end
|
|
134
|
-
command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
|
|
135
137
|
end
|
|
136
138
|
|
|
137
139
|
command_recipe.sort_by! {|item| File.dirname(item)}
|
|
@@ -105,12 +105,14 @@ module ItamaeMitsurin
|
|
|
105
105
|
# recipe load to_command
|
|
106
106
|
command_recipe = []
|
|
107
107
|
recipes.each do |recipe_h|
|
|
108
|
-
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
|
|
109
|
+
Dir.glob(target_recipe).join("\s").split.each do |target|
|
|
110
|
+
unless File.exists?(target)
|
|
111
|
+
ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
|
|
112
|
+
raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
|
|
113
|
+
end
|
|
114
|
+
command_recipe << " #{target}"
|
|
112
115
|
end
|
|
113
|
-
command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
|
|
114
116
|
end
|
|
115
117
|
|
|
116
118
|
command_recipe.sort_by! {|item| File.dirname(item)}
|
|
@@ -65,12 +65,14 @@ module Itamae
|
|
|
65
65
|
# recipe load to_spec
|
|
66
66
|
spec_pattern = []
|
|
67
67
|
recipes.each do |spec_h|
|
|
68
|
-
target_spec = "site-cookbooks/**/#{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
target_spec = "site-cookbooks/**/#{recipe_h.keys.join}/spec/#{recipe_h[recipe_h.keys.join]}_spec.rb"
|
|
69
|
+
Dir.glob(target_spec).join("\s").split.each do |target|
|
|
70
|
+
unless File.exists?(target)
|
|
71
|
+
ex_spec = spec_h.to_s.gsub('=>', '::').gsub('"', '')
|
|
72
|
+
raise "Spec load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_spec}"
|
|
73
|
+
end
|
|
74
|
+
spec_pattern << " #{target}"
|
|
72
75
|
end
|
|
73
|
-
spec_pattern << " #{Dir.glob(target_spec).join("\s")}"
|
|
74
76
|
end
|
|
75
77
|
|
|
76
78
|
spec_pattern.sort_by! {|item| File.dirname(item)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.36
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itamae-mitsurin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.36'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akihiro Kamiyama
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|