itamae 1.0.0.beta39 → 1.0.0.beta40
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/lib/itamae/resource/base.rb +15 -0
- data/lib/itamae/version.txt +1 -1
- 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: d6aba4db92784940a332f8e3cc7be7e11ce5fea4
|
4
|
+
data.tar.gz: 5b27f330dfa4604f05cd60377ae55aa2a1205ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a76369967bf65523c80647775db485b285edd7de2e75718e903a35f141bd088f7d44f190c12776739c80ded96b2f94f9c1c7d62a5e123bc64ed6da85ef4129b
|
7
|
+
data.tar.gz: ad67014d7f49aa51811953ceec8004f82736370e20181652336e882448308dccf747114b95dceb2ee37fd937e4c4d5a4577e7d0ec7f3ce5a12f5e5c109bcd6e6
|
data/lib/itamae/resource/base.rb
CHANGED
@@ -272,6 +272,21 @@ module Itamae
|
|
272
272
|
|
273
273
|
def notify(options)
|
274
274
|
(notifications + recipe.children.subscribing(self)).each do |notification|
|
275
|
+
message = "Notifying #{notification.action} to #{notification.action_resource.resource_type} resource '#{notification.action_resource.resource_name}'"
|
276
|
+
|
277
|
+
case notification.timing
|
278
|
+
when :delay
|
279
|
+
message << " (delayed)"
|
280
|
+
when :immediately
|
281
|
+
message << " (immediately)"
|
282
|
+
end
|
283
|
+
|
284
|
+
Logger.info message
|
285
|
+
|
286
|
+
if notification.instance_of?(Subscription)
|
287
|
+
Logger.info "(because it subscribes this resource)"
|
288
|
+
end
|
289
|
+
|
275
290
|
case notification.timing
|
276
291
|
when :immediately
|
277
292
|
notification.run(options)
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta40
|
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.0.0.
|
4
|
+
version: 1.0.0.beta40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|