itamae 1.3.5 → 1.3.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b5da1c2ff4d918217ee4f29df62cb0660fdb7a9
4
- data.tar.gz: 18078c7885176596c4c3396a8908ff5cc8baa72c
3
+ metadata.gz: b4842b27c4ba16379169c4bc7bbfdfff7bc45b44
4
+ data.tar.gz: 1e5a9a87bb3a4fe69b46877882013ca8a03f5dad
5
5
  SHA512:
6
- metadata.gz: cc92d067302c74eabb5e20c0856540bf6a39486ed520f43744346150c82a69e338de577fa44277156fbdad8bb40ee67a1ee08bb28330c4ef8d6c81bdd414001a
7
- data.tar.gz: 3932d9c1c1053356b4bb45fbfbbdadf73a35e2edcc7025ad12241b21b645e90834ea55c21bd7d3042a7d00830e38e666a45dadec937f6299eaa01f2092b8ba3c
6
+ metadata.gz: abb1822d970c0505c4712498712982bc91e73fda3cc9b637087ff506e25424909412bf9eaa89af5de9a28bcc1d647dfb746bef73c455b4f967cf17a68a1e1d24
7
+ data.tar.gz: 8387eafd45ca3ee9fb52cac8d317e4ef59d293d9f4cb6404e6e0b740edc6d90b81512f0903813a3bb641ee3bd90e76342ad2d6f1bbf9b436eac140829bf6b7ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.3.6
2
+
3
+ Bugfixes
4
+
5
+ - `create` action of `file` resource without `content` attribute changes mode and owner without touching the content of the file
6
+
1
7
  ## v1.3.5
2
8
 
3
9
  Improvements
@@ -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 current.exist && !attributes.content && !content_file
137
+ if !attributes.content && !content_file
134
138
  @temppath = nil
135
139
  return
136
140
  end
@@ -1 +1 @@
1
- 1.3.5
1
+ 1.3.6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai