itamae 1.1.21 → 1.1.22
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/lib/itamae/resource/remote_file.rb +10 -8
- data/lib/itamae/resource/template.rb +2 -2
- data/lib/itamae/version.txt +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7efcc0396e05beaf599275ab88cf1b20ed65d47a
|
4
|
+
data.tar.gz: 9edcaac351f83ffbb98eef6cad3a1d195c0cb7c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b5b28f6080716683a502e8cb80be696fa3f92a6041741856fb0636a246eae76af79660f281c57deac34745864b29514c054d0df68378da81ca9c0eebf7542e
|
7
|
+
data.tar.gz: 76977772addd4da398b207f28e6be09cbfe59bdf9be33289b906c93e45e4f8171771eb1edfbb28d3dbd8b4e067b817e937902bb88e08fd5088db7d007ccfde1f
|
data/CHANGELOG.md
CHANGED
@@ -24,12 +24,14 @@ module Itamae
|
|
24
24
|
|
25
25
|
searched_paths = []
|
26
26
|
dirs.size.times do |i|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
source_file_exts.each do |ext|
|
28
|
+
path = ::File.join(@recipe.dir, source_file_dir, "#{dirs[i..-1].join("/")}#{ext}")
|
29
|
+
if ::File.exist?(path)
|
30
|
+
Logger.debug "#{path} is used as a source file."
|
31
|
+
return path
|
32
|
+
else
|
33
|
+
searched_paths << path
|
34
|
+
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
@@ -43,8 +45,8 @@ module Itamae
|
|
43
45
|
"files"
|
44
46
|
end
|
45
47
|
|
46
|
-
def
|
47
|
-
""
|
48
|
+
def source_file_exts
|
49
|
+
[""]
|
48
50
|
end
|
49
51
|
end
|
50
52
|
end
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.22
|