ScholarNexus-ec2onrails 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ec2onrails.gemspec +7 -5
- data/lib/ec2onrails/recipes/db.rb +3 -3
- metadata +5 -5
data/ec2onrails.gemspec
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
1
3
|
Gem::Specification.new do |s|
|
2
4
|
s.name = %q{ec2onrails}
|
3
|
-
s.version = "0.9.
|
5
|
+
s.version = "0.9.11"
|
4
6
|
|
5
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
8
|
s.authors = ["Paul Dowman, Adam Greene"]
|
7
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-02-17}
|
8
10
|
s.description = %q{Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.}
|
9
11
|
s.email = %q{paul@pauldowman.com}
|
10
12
|
s.extra_rdoc_files = ["CHANGELOG", "lib/ec2onrails/capistrano_utils.rb", "lib/ec2onrails/recipes/db.rb", "lib/ec2onrails/recipes/deploy.rb", "lib/ec2onrails/recipes/server.rb", "lib/ec2onrails/recipes.rb", "lib/ec2onrails/version.rb", "lib/ec2onrails.rb", "README.textile"]
|
@@ -14,15 +16,15 @@ Gem::Specification.new do |s|
|
|
14
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ec2onrails", "--main", "README.textile"]
|
15
17
|
s.require_paths = ["lib"]
|
16
18
|
s.rubyforge_project = %q{ec2onrails}
|
17
|
-
s.rubygems_version = %q{1.
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
18
20
|
s.summary = %q{Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.}
|
19
|
-
s.test_files = ["test/test_app/test/functional/db_fast_controller_test.rb", "test/test_app/test/functional/
|
21
|
+
s.test_files = ["test/test_app/test/functional/db_fast_controller_test.rb", "test/test_app/test/functional/fast_controller_test.rb", "test/test_app/test/functional/slow_controller_test.rb", "test/test_app/test/functional/very_slow_controller_test.rb", "test/test_app/test/test_helper.rb", "test/test_ec2onrails.rb", "test/test_helper.rb"]
|
20
22
|
|
21
23
|
if s.respond_to? :specification_version then
|
22
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
25
|
s.specification_version = 2
|
24
26
|
|
25
|
-
if
|
27
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
28
|
s.add_runtime_dependency(%q<capistrano>, [">= 2.4.3"])
|
27
29
|
s.add_runtime_dependency(%q<archive-tar-minitar>, [">= 0.5.2"])
|
28
30
|
s.add_runtime_dependency(%q<optiflag>, [">= 0.6.5"])
|
@@ -149,7 +149,7 @@ Capistrano::Configuration.instance.load do
|
|
149
149
|
unless prev_created
|
150
150
|
puts "creating new ebs volume...."
|
151
151
|
size = ENV["SIZE"] || "10"
|
152
|
-
cmd = "/root/
|
152
|
+
cmd = "/root/ec2bin/ec2-create-volume -s #{size} -z #{zone} 2>&1"
|
153
153
|
puts "running: #{cmd}"
|
154
154
|
output = `#{cmd}`
|
155
155
|
puts output
|
@@ -159,14 +159,14 @@ Capistrano::Configuration.instance.load do
|
|
159
159
|
end
|
160
160
|
vol_id.strip! if vol_id
|
161
161
|
if quiet_capture("mount | grep -inr '#{block_mnt}' || echo ''").empty?
|
162
|
-
cmd = "/root/
|
162
|
+
cmd = "/root/ec2bin/ec2-attach-volume -d #{block_mnt} -i #{instance_id} #{vol_id} 2>&1"
|
163
163
|
puts "running: #{cmd}"
|
164
164
|
output = `#{cmd}`
|
165
165
|
puts output
|
166
166
|
if output =~ /Client.InvalidVolume.ZoneMismatch/i
|
167
167
|
raise Exception, "The volume you are trying to attach does not reside in the zone of your instance. Stopping!"
|
168
168
|
end
|
169
|
-
while !system( "/root/
|
169
|
+
while !system( "/root/ec2bin/ec2-describe-volumes | grep #{vol_id} | grep attached" )
|
170
170
|
puts "Waiting for #{vol_id} to be attached..."
|
171
171
|
sleep 1
|
172
172
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ScholarNexus-ec2onrails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dowman, Adam Greene
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-02-17 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: rake
|
47
|
-
type: :
|
47
|
+
type: :development
|
48
48
|
version_requirement:
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
@@ -269,9 +269,9 @@ specification_version: 2
|
|
269
269
|
summary: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.
|
270
270
|
test_files:
|
271
271
|
- test/test_app/test/functional/db_fast_controller_test.rb
|
272
|
-
- test/test_app/test/functional/very_slow_controller_test.rb
|
273
272
|
- test/test_app/test/functional/fast_controller_test.rb
|
274
273
|
- test/test_app/test/functional/slow_controller_test.rb
|
274
|
+
- test/test_app/test/functional/very_slow_controller_test.rb
|
275
275
|
- test/test_app/test/test_helper.rb
|
276
|
-
- test/test_helper.rb
|
277
276
|
- test/test_ec2onrails.rb
|
277
|
+
- test/test_helper.rb
|