itamae 1.6.0 → 1.6.1

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: 7645dcbc25524977716925e4fd25ff38b384b9fe
4
- data.tar.gz: 8794a7a72b0f04f54a44bfa1c77f9abaf0d9c2fd
3
+ metadata.gz: 32a4ba446295dd45966af97743bf78240ddf0517
4
+ data.tar.gz: 03e4c40c1c8ad324afc28284f7953b167bf5f310
5
5
  SHA512:
6
- metadata.gz: 22979a7c43b6251c5c5351645c3806286b10f2e9c9474d33ba5072b3ce54ea5e10cac902dbb25963ccf5a5f5f8f42523db0e959c83c4e7d788d4d696623d036a
7
- data.tar.gz: 96a6a28449318915eab6331b83502904a8514d015ae23e151a1ae876822696812a6207b954602f3a7bbb4da8f862b82b42dc9034cb3835582b675d8331fc772e
6
+ metadata.gz: fd0adc5ce6e323453efc62744e12ae0230b588864a39290c850072676dede5410f91b8228f3f1f280a33a25a716cc03e90f28e699fd79e2fd2da5c09699c4a98
7
+ data.tar.gz: 3ced7d487ad1b0668d2f04be0c0634c1c569189f86801fd0b3d5f54cb28c859a1d53d4c51708dbfa02abf3226a37812e1933afe0671ce62e1bf43525dd54971d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.6.1
2
+
3
+ Bugfixes
4
+
5
+ - [Send a notification from `edit` action of `file` resource properly (by @kurochan)](https://github.com/itamae-kitchen/itamae/pull/169)
6
+
1
7
  ## v1.6.0
2
8
 
3
9
  Improvements
data/README.md CHANGED
@@ -73,13 +73,18 @@ Requirements: Vagrant
73
73
  $ bundle exec rake spec
74
74
  ```
75
75
 
76
- ## Presentations
76
+ ## Get Involved
77
77
 
78
- - [(in Japanese) Itamae - Infra as Code 現状確認会](https://speakerdeck.com/ryotarai/itamae-infra-as-code-xian-zhuang-que-ren-hui)
78
+ - [Join Slack team](https://itamae-slackin.herokuapp.com/)
79
79
 
80
- ## Get Involved
80
+ ## Presentations / Articles
81
+
82
+ ### in Japanese
83
+
84
+ - [Itamae - Infra as Code 現状確認会](https://speakerdeck.com/ryotarai/itamae-infra-as-code-xian-zhuang-que-ren-hui)
85
+ - [クックパッドのサーバプロビジョニング事情 - クックパッド開発者ブログ](http://techlife.cookpad.com/entry/2015/05/12/080000)
86
+ - [Itamaeが構成管理を仕込みます! ~新進気鋭の国産・構成管理ツール~:連載|gihyo.jp … 技術評論社](http://gihyo.jp/admin/serial/01/itamae)
81
87
 
82
- [Don't hesitate to join our Slack team!](https://itamae-slackin.herokuapp.com/)
83
88
 
84
89
  ## Contributing
85
90
 
@@ -101,6 +101,11 @@ module Itamae
101
101
  run_command(['chown', '--reference', attributes.path, @temppath])
102
102
  end
103
103
 
104
+ unless check_command(["diff", "-q", @temppath, attributes.path])
105
+ # the file is modified
106
+ updated!
107
+ end
108
+
104
109
  run_specinfra(:move_file, @temppath, attributes.path)
105
110
  end
106
111
 
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
@@ -180,3 +180,7 @@ describe file('/tmp/file_create_without_content') do
180
180
  it { should be_owned_by "itamae" }
181
181
  it { should be_grouped_into "itamae" }
182
182
  end
183
+
184
+ describe file('/tmp/file_edit_notifies') do
185
+ its(:content) { should eq("1") }
186
+ end
@@ -342,6 +342,11 @@ file '/tmp/file_edit_sample' do
342
342
  block do |content|
343
343
  content.gsub!('world', 'Itamae')
344
344
  end
345
+ notifies :run, "execute[echo -n 1 > /tmp/file_edit_notifies]"
346
+ end
347
+
348
+ execute 'echo -n 1 > /tmp/file_edit_notifies' do
349
+ action :nothing
345
350
  end
346
351
 
347
352
  ###
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor