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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +9 -4
- data/lib/itamae/resource/file.rb +5 -0
- data/lib/itamae/version.txt +1 -1
- data/spec/integration/default_spec.rb +4 -0
- data/spec/integration/recipes/default.rb +5 -0
- 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: 32a4ba446295dd45966af97743bf78240ddf0517
|
4
|
+
data.tar.gz: 03e4c40c1c8ad324afc28284f7953b167bf5f310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd0adc5ce6e323453efc62744e12ae0230b588864a39290c850072676dede5410f91b8228f3f1f280a33a25a716cc03e90f28e699fd79e2fd2da5c09699c4a98
|
7
|
+
data.tar.gz: 3ced7d487ad1b0668d2f04be0c0634c1c569189f86801fd0b3d5f54cb28c859a1d53d4c51708dbfa02abf3226a37812e1933afe0671ce62e1bf43525dd54971d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -73,13 +73,18 @@ Requirements: Vagrant
|
|
73
73
|
$ bundle exec rake spec
|
74
74
|
```
|
75
75
|
|
76
|
-
##
|
76
|
+
## Get Involved
|
77
77
|
|
78
|
-
- [
|
78
|
+
- [Join Slack team](https://itamae-slackin.herokuapp.com/)
|
79
79
|
|
80
|
-
##
|
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
|
|
data/lib/itamae/resource/file.rb
CHANGED
@@ -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
|
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.1
|
@@ -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.
|
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-
|
11
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|