itamae 1.2.10 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62726b5378a313997bc92b497c4345089601ea56
4
- data.tar.gz: 86e0f81c1404c49733f6a8e99c77d5ab667e840f
3
+ metadata.gz: abc46228492e8429a26e851015522f897ded712f
4
+ data.tar.gz: ad1644cef5cfe63cd651ebfcd1a41607c63fe1f6
5
5
  SHA512:
6
- metadata.gz: f12d5055103bad19ced90d509c9ae4205977ea601fbb2453a93b54f7cc5c2d20d53463535d9c3ad3f402c632436d986dfb96415a6d2ccd8aa2a5733bc3376c3b
7
- data.tar.gz: 4334497546e84c22381eed578897bd81dd068645cffe39de0a46d80e3cddc760965c06bb3172eca6d3351650d6e988fe2b112583bc3db2f7c9aa6c99308dcc8a
6
+ metadata.gz: c035e7f0e949cadbb6f6338668501bbff39e8892e7662e8570f333f6ede71e2b7f323e6a78041795d18816deacadffe00ac0f0fe4e2830048d7a3a02ccddb338
7
+ data.tar.gz: 4f7e22d682411a50334b4d18b318e611fd3ff40160f3d6d27cb882b4ef426ee19294adf552c792a3dd6de06bbcacbd3dff86faaee427e1b95d25bd8236366708
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.2.11
2
+
3
+ Bugfixes
4
+
5
+ - [Show difference of user resource when it is created. by @gongo](https://github.com/itamae-kitchen/itamae/pull/118)
6
+
1
7
  ## v1.2.10
2
8
 
3
9
  Bugfixes
@@ -11,6 +11,13 @@ module Itamae
11
11
  define_attribute :system_user, type: [TrueClass, FalseClass]
12
12
  define_attribute :uid, type: Integer
13
13
 
14
+ def pre_action
15
+ case @current_action
16
+ when :create
17
+ attributes.exist = true
18
+ end
19
+ end
20
+
14
21
  def set_current_attributes
15
22
  current.exist = exist?
16
23
 
@@ -74,4 +81,3 @@ module Itamae
74
81
  end
75
82
  end
76
83
  end
77
-
@@ -1 +1 @@
1
- 1.2.10
1
+ 1.2.11
@@ -2,6 +2,8 @@ node.reverse_merge!({
2
2
  message: "Hello, Itamae"
3
3
  })
4
4
 
5
+ execute 'apt-get update'
6
+
5
7
  include_recipe "./included.rb"
6
8
  include_recipe "./included.rb" # including the same recipe is expected to be skipped.
7
9
 
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.2.10
4
+ version: 1.2.11
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-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor