dynamo-autoscale 0.1.1 → 0.1.2

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ v0.1.2
2
+
3
+ - Fixed a require error that caused the program to bomb out in certain
4
+ circumstances.
5
+ - Added some extra logging around rules being triggered.
6
+
1
7
  v0.1.1
2
8
 
3
9
  - Added peace-of-mind logging when the program starts so you can actually tell
@@ -9,6 +9,7 @@ require 'colored'
9
9
 
10
10
  require_relative '../../lib/dynamo-autoscale/logger'
11
11
  require_relative '../../lib/dynamo-autoscale/poller'
12
+ require_relative '../../lib/dynamo-autoscale/actioner'
12
13
 
13
14
  module DynamoAutoscale
14
15
  include DynamoAutoscale::Logger
@@ -115,6 +115,7 @@ module DynamoAutoscale
115
115
 
116
116
  if @opts[:times].nil? or @count[table.name] == @opts[:times]
117
117
  @count[table.name] = 0
118
+ logger.info "[rule] Triggered rule: #{self.to_english}"
118
119
 
119
120
  if scale = @opts[:scale]
120
121
  new_val = table.send("last_#{scale[:on]}_for", @metric) * scale[:by]
@@ -1,3 +1,3 @@
1
1
  module DynamoAutoscale
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamo-autoscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: