itamae 1.0.0.beta39 → 1.0.0.beta40

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: d3a4021dcb9b9977066b6717638e220e25f52ac2
4
- data.tar.gz: bdce6341d1b945d3a0d46a4e48cde128cc2966d4
3
+ metadata.gz: d6aba4db92784940a332f8e3cc7be7e11ce5fea4
4
+ data.tar.gz: 5b27f330dfa4604f05cd60377ae55aa2a1205ac0
5
5
  SHA512:
6
- metadata.gz: fc7e7781f0e9b88d3b389ac2ea4b458fe7ac0d84256c5fbf814d09a53758ff987eba395ba7c2f6fd44903a4ced8c356704f0a630dc0cd0d59b348286ef724924
7
- data.tar.gz: 048e9fd161e15223462c0b33963939ff01c82ea218cd3feb347d42d66797d68be379e475116a1e0e5cfad846f616228061ec09beacccf965b4d2d0967ac76573
6
+ metadata.gz: 5a76369967bf65523c80647775db485b285edd7de2e75718e903a35f141bd088f7d44f190c12776739c80ded96b2f94f9c1c7d62a5e123bc64ed6da85ef4129b
7
+ data.tar.gz: ad67014d7f49aa51811953ceec8004f82736370e20181652336e882448308dccf747114b95dceb2ee37fd937e4c4d5a4577e7d0ec7f3ce5a12f5e5c109bcd6e6
@@ -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)
@@ -1 +1 @@
1
- 1.0.0.beta39
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.beta39
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-08-31 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor