itamae 1.3.5 → 1.3.6
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/file.rb +5 -1
- 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: b4842b27c4ba16379169c4bc7bbfdfff7bc45b44
|
4
|
+
data.tar.gz: 1e5a9a87bb3a4fe69b46877882013ca8a03f5dad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abb1822d970c0505c4712498712982bc91e73fda3cc9b637087ff506e25424909412bf9eaa89af5de9a28bcc1d647dfb746bef73c455b4f967cf17a68a1e1d24
|
7
|
+
data.tar.gz: 8387eafd45ca3ee9fb52cac8d317e4ef59d293d9f4cb6404e6e0b740edc6d90b81512f0903813a3bb641ee3bd90e76342ad2d6f1bbf9b436eac140829bf6b7ca
|
data/CHANGELOG.md
CHANGED
data/lib/itamae/resource/file.rb
CHANGED
@@ -54,6 +54,10 @@ module Itamae
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def action_create(options)
|
57
|
+
if !current.exist && !@temppath
|
58
|
+
run_command(["touch", attributes.path])
|
59
|
+
end
|
60
|
+
|
57
61
|
change_target = @temppath || attributes.path
|
58
62
|
|
59
63
|
if attributes.mode
|
@@ -130,7 +134,7 @@ module Itamae
|
|
130
134
|
end
|
131
135
|
|
132
136
|
def send_tempfile
|
133
|
-
if
|
137
|
+
if !attributes.content && !content_file
|
134
138
|
@temppath = nil
|
135
139
|
return
|
136
140
|
end
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.6
|