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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eycloud-recipe-resque (1.0.1)
4
+ eycloud-recipe-resque (1.0.2)
5
5
  eycloud-helper-cronjobs
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
- version = "1.0.1" # get from metadata.json or .rb
4
+ version = "1.0.2" # get from metadata.json or .rb
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "eycloud-recipe-resque"
data/metadata.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "license": "MIT",
3
3
  "maintainer": "Engine Yard LLC",
4
4
  "maintainer_email": "drnic@engineyard.com",
5
- "version": "1.0.1",
5
+ "version": "1.0.2",
6
6
  "description": "Resque for EY Cloud",
7
7
  "name": "resque",
8
8
  "attributes": {
data/metadata.rb CHANGED
@@ -3,5 +3,5 @@ description "Resque for EY Cloud"
3
3
  long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
4
4
  maintainer "Engine Yard LLC"
5
5
  maintainer_email "drnic@engineyard.com"
6
- version "1.0.1"
6
+ version "1.0.2"
7
7
  depends "cronjobs"
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.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" }
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.public_hostname,
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.1
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: &70267959991360 !ruby/object:Gem::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: *70267959991360
24
+ version_requirements: *70102548992340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70267959989680 !ruby/object:Gem::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: *70267959989680
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: 4247591606190947945
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: 4247591606190947945
83
+ hash: 1341964992032827832
84
84
  requirements: []
85
85
  rubyforge_project:
86
86
  rubygems_version: 1.8.17