auto_elasticache 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/auto_elasticache.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = %q{Automatically start and configure an AWS ElastiCache cluster from an Elastic Beanstalk environment}
|
12
12
|
gem.summary = %q{AutoElasticache automatically starts an AWS ElastiCache cluster and configures Rails to use it. This gem requires that you are using AWS Elastic Beanstalk.}
|
13
13
|
gem.homepage = "https://github.com/dignoe/auto_elasticache"
|
14
|
+
gem.license = 'MIT'
|
14
15
|
|
15
16
|
gem.add_dependency('aws-sdk')
|
16
17
|
gem.add_dependency('dalli-elasticache')
|
@@ -9,21 +9,21 @@ module AutoElasticache
|
|
9
9
|
attr_accessor :config_endpoint
|
10
10
|
|
11
11
|
def initialize
|
12
|
-
@config_endpoint =
|
12
|
+
@config_endpoint = configuration_endpoint
|
13
13
|
end
|
14
14
|
|
15
15
|
def servers
|
16
16
|
if File.exists?(SERVERS_FILE)
|
17
17
|
return File.read(SERVERS_FILE).split("\n")
|
18
18
|
else
|
19
|
-
elasticache = Dalli::ElastiCache.new(
|
19
|
+
elasticache = Dalli::ElastiCache.new(@config_endpoint)
|
20
20
|
File.open(SERVERS_FILE, 'w') {|f| f.write(elasticache.servers.join("\n")) }
|
21
21
|
return elasticache.servers
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
def refresh_servers
|
26
|
-
elasticache = Dalli::ElastiCache.new(
|
26
|
+
elasticache = Dalli::ElastiCache.new(@config_endpoint)
|
27
27
|
File.open(SERVERS_FILE, 'w') {|f| f.write(elasticache.servers.join("\n")) }
|
28
28
|
return elasticache.servers
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_elasticache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -63,7 +63,8 @@ files:
|
|
63
63
|
- lib/auto_elasticache/elasticache.rb
|
64
64
|
- lib/auto_elasticache/version.rb
|
65
65
|
homepage: https://github.com/dignoe/auto_elasticache
|
66
|
-
licenses:
|
66
|
+
licenses:
|
67
|
+
- MIT
|
67
68
|
post_install_message:
|
68
69
|
rdoc_options: []
|
69
70
|
require_paths:
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubyforge_project:
|
85
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.25
|
86
87
|
signing_key:
|
87
88
|
specification_version: 3
|
88
89
|
summary: AutoElasticache automatically starts an AWS ElastiCache cluster and configures
|