quietus 1.1.0 → 1.1.1

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: 6d8410205dbca9178b2609a1a76788fdab743cba
4
- data.tar.gz: fd7fa1a795b0eeff504db7dc6ef8f7f40b2c641f
3
+ metadata.gz: 69d55a9400454573f4a6550660de64a96009aef0
4
+ data.tar.gz: 0445fbc89479dabf542c8f870d85c27de2692917
5
5
  SHA512:
6
- metadata.gz: 78dc5a4bd4def6ea16a223bf42328eea730e796f9bce5cd7a59e3f27730b9ca9ed8f68a7c73ed335a3637a93f32046a4189887c2c452968084d5c179d7af1085
7
- data.tar.gz: 4a94d9417bc062b259cc391934bd4a4f71207e7cc34b37098d4d1cf719927481a2d16dcb2a062aa4d416f3f554e28643a050576e348b99e29a8c075d982b7d5c
6
+ metadata.gz: 475581080217de8a556383f6522f1bc3629b50b88f3a0e4f3264985b8a94616683072e207da6ea6608c545b2431b40d0f0419c2aed1510e3b1ca67c412972003
7
+ data.tar.gz: 231f62d2d6a163827935e1262b068ea5603bf01f984d0856f8a41fd405e69c5aa53e23fd1cf6a2f965ec371134bbfc42c801bde0ded6dcf18f4945db1172cc5d
data/README.md CHANGED
@@ -52,6 +52,9 @@ don't want an ELB.
52
52
  require 'quietus'
53
53
  require 'aws-sdk'
54
54
 
55
+ # The server will not contact AWS unless the following is set:
56
+ ENV['APP_ENV'] == 'production'
57
+
55
58
  # You'll need to get an auto_scaling_instance from the API
56
59
  auto_scaling = AWS::AutoScaling.new
57
60
  auto_scaling_instance = auto_scaling.instances['i-12345678']
@@ -71,4 +74,3 @@ end
71
74
  **It's important to remember if your app simply crashes, using the active setup
72
75
  the health check API won't get updated.**
73
76
 
74
-
@@ -14,7 +14,9 @@ module Quietus
14
14
  def server(&proc)
15
15
  loop do
16
16
  new_status = proc.call
17
- update new_status if new_status != status
17
+ if (new_status != status) && ENV['APP_ENV'] == 'production'
18
+ update new_status
19
+ end
18
20
  end
19
21
  end
20
22
 
@@ -1,3 +1,3 @@
1
1
  module Quietus
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -2,5 +2,7 @@ $: << File.join(File.dirname(__FILE__), '..', 'lib')
2
2
 
3
3
  class RspecLoopStop < Exception; end
4
4
 
5
+ ENV['APP_ENV'] = 'production'
6
+
5
7
  require 'pry'
6
8
  require 'quietus'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quietus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny