rubber 2.0.0.pre3 → 2.0.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module Rubber
7
7
  # Contains the ec2 instance configuration defined in instance.yml
8
8
  #
9
9
  class Instance
10
- attr_reader :file, :artifacts
10
+ attr_reader :instance_storage, :artifacts
11
11
  include Enumerable
12
12
  include MonitorMixin
13
13
 
@@ -70,7 +70,14 @@ namespace :rubber do
70
70
  # Need to do this so we can work with staging instances without having to
71
71
  # checkin instance file between create and bootstrap, as well as during a deploy
72
72
  if fetch(:push_instance_config, false)
73
- push_files = [rubber_instances.file] + rubber_cfg.environment.config_files
73
+ push_files = rubber_cfg.environment.config_files
74
+
75
+ # If we're using a local instance file, push that up. This isn't necessary when storing in S3 or SimpleDB.
76
+ if rubber_instances.instance_storage =~ /^file:(.*)/
77
+ location = $1
78
+ push_files << location
79
+ end
80
+
74
81
  push_files.each do |file|
75
82
  dest_file = file.sub(/^#{Rubber.root}\/?/, '')
76
83
  put(File.read(file), File.join(path, dest_file), :mode => "+r")
@@ -1,4 +1,4 @@
1
1
  module Rubber
2
- VERSION = "2.0.0.pre3"
2
+ VERSION = "2.0.0.pre4"
3
3
  end
4
4
 
@@ -130,7 +130,7 @@ cloud_provider: aws
130
130
  # store, the instance file is typically under version control with
131
131
  # your project code, so that provides some safety.
132
132
  #
133
- # instance_storage_backup: "storage:#{cloud_provider.aws.backup_bucket}/RubberInstances_#{app_name}/instance-#{Rubber.env}-#{Time.now.strftime('%Y%m%d-%H%M%S')}.yml"
133
+ # instance_storage_backup: "storage:#{cloud_providers.aws.backup_bucket}/RubberInstances_#{app_name}/instance-#{Rubber.env}-#{Time.now.strftime('%Y%m%d-%H%M%S')}.yml"
134
134
 
135
135
  # OPTIONAL: Define security groups
136
136
  # Each security group is a name associated with a sequence of maps where the
@@ -7,9 +7,12 @@
7
7
  # installed at /etc/default/monit by maintainer scripts
8
8
  # Fredrik Steen <stone@debian.org>
9
9
 
10
- # You must set this variable to for monit to start
10
+ # You must set this variable for monit to start (Ubuntu < 11.10)
11
11
  startup=1
12
12
 
13
+ # You must set this variable for monit to start (Ubuntu >= 11.10)
14
+ START=yes
15
+
13
16
  # To change the intervals which monit should run uncomment
14
17
  # and change this variable.
15
18
  # CHECK_INTERVALS=180
@@ -115,7 +115,7 @@ standby_mode = on
115
115
  # If set, the PostgreSQL server will try to connect to the primary using this
116
116
  # connection string and receive XLOG records continuously.
117
117
  #
118
- primary_conninfo = 'host=<%= rubber_instances.for_role('postgresql_master').first.name %> port=5432 user=<%= rubber_env.db_replication_user %> <%= rubber_env.db_replication_user_pass ? "password=#{rubber_env.db_replication_user}" : "" %> application_name=<%= rubber_env.app_name %>' # e.g. 'host=localhost port=5432'
118
+ primary_conninfo = 'host=<%= rubber_instances.for_role('postgresql_master').first.name %> port=5432 user=<%= rubber_env.db_replication_user %> <%= rubber_env.db_replication_pass ? "password=#{rubber_env.db_replication_pass}" : "" %> application_name=<%= rubber_env.app_name %>' # e.g. 'host=localhost port=5432'
119
119
  #
120
120
  #
121
121
  # By default, a standby server keeps restoring XLOG records from the
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre3
4
+ version: 2.0.0.pre4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-12 00:00:00.000000000 Z
13
+ date: 2012-02-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
17
- requirement: &22303940 !ruby/object:Gem::Requirement
17
+ requirement: &27783840 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.8.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *22303940
25
+ version_requirements: *27783840
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: thor
28
- requirement: &22301780 !ruby/object:Gem::Requirement
28
+ requirement: &27783420 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *22301780
36
+ version_requirements: *27783420
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: clamp
39
- requirement: &22300360 !ruby/object:Gem::Requirement
39
+ requirement: &27782960 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *22300360
47
+ version_requirements: *27782960
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: open4
50
- requirement: &22299500 !ruby/object:Gem::Requirement
50
+ requirement: &27782540 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *22299500
58
+ version_requirements: *27782540
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: fog
61
- requirement: &26492660 !ruby/object:Gem::Requirement
61
+ requirement: &27782040 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.0.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *26492660
69
+ version_requirements: *27782040
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
- requirement: &26492240 !ruby/object:Gem::Requirement
72
+ requirement: &27781620 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *26492240
80
+ version_requirements: *27781620
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: test-unit
83
- requirement: &26491780 !ruby/object:Gem::Requirement
83
+ requirement: &27781160 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *26491780
91
+ version_requirements: *27781160
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: shoulda-context
94
- requirement: &26491360 !ruby/object:Gem::Requirement
94
+ requirement: &27780740 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *26491360
102
+ version_requirements: *27780740
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: mocha
105
- requirement: &26490940 !ruby/object:Gem::Requirement
105
+ requirement: &27780320 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *26490940
113
+ version_requirements: *27780320
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: ruby-debug19
116
- requirement: &26490520 !ruby/object:Gem::Requirement
116
+ requirement: &27779900 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,7 +121,7 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *26490520
124
+ version_requirements: *27779900
125
125
  description: ! " The rubber plugin enables relatively complex multi-instance deployments
126
126
  of RubyOnRails applications to\n Amazon's Elastic Compute Cloud (EC2). Like
127
127
  capistrano, rubber is role based, so you can define a set\n of configuration
@@ -506,7 +506,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
506
506
  version: '0'
507
507
  segments:
508
508
  - 0
509
- hash: 4048110118862946601
509
+ hash: 1903448208957765126
510
510
  required_rubygems_version: !ruby/object:Gem::Requirement
511
511
  none: false
512
512
  requirements: