eycloud-recipe-resque 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/eycloud-recipe-resque.gemspec +1 -1
- data/metadata.json +1 -1
- data/metadata.rb +1 -1
- data/recipes/configure.rb +4 -4
- metadata +7 -7
data/Gemfile.lock
CHANGED
data/metadata.json
CHANGED
data/metadata.rb
CHANGED
data/recipes/configure.rb
CHANGED
@@ -41,9 +41,9 @@ if node[:instance_role] == "solo" || node[:instance_role] == "eylocal" ||
|
|
41
41
|
end
|
42
42
|
|
43
43
|
if %w[solo app app_master util].include? node[:instance_role]
|
44
|
-
redis_instance = node
|
45
|
-
node
|
46
|
-
node
|
44
|
+
redis_instance = node[:engineyard][:environment][:utility_instances].find {|x| x[:name] == "redis"} ||
|
45
|
+
node[:engineyard][:environment][:db_master] ||
|
46
|
+
node[:engineyard][:environment][:instances].find { |x| x[:role] == "solo" }
|
47
47
|
|
48
48
|
node[:applications].each do |app, data|
|
49
49
|
template "/data/#{app}/shared/config/resque.yml" do
|
@@ -52,7 +52,7 @@ if %w[solo app app_master util].include? node[:instance_role]
|
|
52
52
|
mode 0655
|
53
53
|
source "resque.yml.erb"
|
54
54
|
variables(:framework_env => node[:environment][:framework_env],
|
55
|
-
:redis_host => redis_instance
|
55
|
+
:redis_host => redis_instance[:public_hostname],
|
56
56
|
:redis_port => 6379)
|
57
57
|
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eycloud-recipe-resque
|
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:
|
@@ -13,7 +13,7 @@ date: 2012-03-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eycloud-helper-cronjobs
|
16
|
-
requirement: &
|
16
|
+
requirement: &70102548992340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70102548992340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70102549016700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70102549016700
|
36
36
|
description: Resque for EY Cloud
|
37
37
|
email:
|
38
38
|
- drnicwilliams@gmail.com
|
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
segments:
|
73
73
|
- 0
|
74
|
-
hash:
|
74
|
+
hash: 1341964992032827832
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
none: false
|
77
77
|
requirements:
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
segments:
|
82
82
|
- 0
|
83
|
-
hash:
|
83
|
+
hash: 1341964992032827832
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
86
|
rubygems_version: 1.8.17
|