Empact-ec2onrails 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/CHANGELOG +159 -0
  2. data/LICENSE +339 -0
  3. data/README.rdoc +232 -0
  4. data/Rakefile +34 -0
  5. data/examples/Capfile +3 -0
  6. data/examples/deploy.rb +85 -0
  7. data/examples/s3.yml +9 -0
  8. data/lib/ec2onrails.rb +20 -0
  9. data/lib/ec2onrails/capistrano_utils.rb +33 -0
  10. data/lib/ec2onrails/recipes.rb +460 -0
  11. data/lib/ec2onrails/version.rb +31 -0
  12. data/test/autobench.conf +60 -0
  13. data/test/spec/lib/s3_helper_spec.rb +134 -0
  14. data/test/spec/lib/s3_old.yml +3 -0
  15. data/test/spec/test_files/test1 +0 -0
  16. data/test/spec/test_files/test2 +0 -0
  17. data/test/test_app/Capfile +3 -0
  18. data/test/test_app/README +182 -0
  19. data/test/test_app/Rakefile +10 -0
  20. data/test/test_app/app/controllers/application.rb +7 -0
  21. data/test/test_app/app/controllers/db_fast_controller.rb +6 -0
  22. data/test/test_app/app/controllers/fast_controller.rb +5 -0
  23. data/test/test_app/app/controllers/slow_controller.rb +6 -0
  24. data/test/test_app/app/controllers/very_slow_controller.rb +6 -0
  25. data/test/test_app/app/helpers/application_helper.rb +3 -0
  26. data/test/test_app/app/helpers/db_fast_helper.rb +2 -0
  27. data/test/test_app/app/helpers/fast_helper.rb +2 -0
  28. data/test/test_app/app/helpers/slow_helper.rb +2 -0
  29. data/test/test_app/app/helpers/very_slow_helper.rb +2 -0
  30. data/test/test_app/config/boot.rb +109 -0
  31. data/test/test_app/config/database.yml +36 -0
  32. data/test/test_app/config/deploy.rb +21 -0
  33. data/test/test_app/config/environment.rb +60 -0
  34. data/test/test_app/config/environments/development.rb +21 -0
  35. data/test/test_app/config/environments/production.rb +18 -0
  36. data/test/test_app/config/environments/test.rb +19 -0
  37. data/test/test_app/config/routes.rb +27 -0
  38. data/test/test_app/db/schema.rb +7 -0
  39. data/test/test_app/doc/README_FOR_APP +2 -0
  40. data/test/test_app/public/404.html +30 -0
  41. data/test/test_app/public/500.html +30 -0
  42. data/test/test_app/public/dispatch.cgi +10 -0
  43. data/test/test_app/public/dispatch.fcgi +24 -0
  44. data/test/test_app/public/dispatch.rb +10 -0
  45. data/test/test_app/public/favicon.ico +0 -0
  46. data/test/test_app/public/images/rails.png +0 -0
  47. data/test/test_app/public/javascripts/application.js +2 -0
  48. data/test/test_app/public/javascripts/controls.js +963 -0
  49. data/test/test_app/public/javascripts/dragdrop.js +972 -0
  50. data/test/test_app/public/javascripts/effects.js +1120 -0
  51. data/test/test_app/public/javascripts/prototype.js +4225 -0
  52. data/test/test_app/public/robots.txt +1 -0
  53. data/test/test_app/script/about +3 -0
  54. data/test/test_app/script/breakpointer +3 -0
  55. data/test/test_app/script/console +3 -0
  56. data/test/test_app/script/destroy +3 -0
  57. data/test/test_app/script/generate +3 -0
  58. data/test/test_app/script/performance/benchmarker +3 -0
  59. data/test/test_app/script/performance/profiler +3 -0
  60. data/test/test_app/script/performance/request +3 -0
  61. data/test/test_app/script/plugin +3 -0
  62. data/test/test_app/script/process/inspector +3 -0
  63. data/test/test_app/script/process/reaper +3 -0
  64. data/test/test_app/script/process/spawner +3 -0
  65. data/test/test_app/script/runner +3 -0
  66. data/test/test_app/script/server +3 -0
  67. data/test/test_app/test/functional/db_fast_controller_test.rb +18 -0
  68. data/test/test_app/test/functional/fast_controller_test.rb +18 -0
  69. data/test/test_app/test/functional/slow_controller_test.rb +18 -0
  70. data/test/test_app/test/functional/very_slow_controller_test.rb +18 -0
  71. data/test/test_app/test/test_helper.rb +28 -0
  72. data/test/test_ec2onrails.rb +11 -0
  73. data/test/test_helper.rb +2 -0
  74. metadata +156 -0
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/breakpointer'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/request'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,18 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ require 'db_fast_controller'
3
+
4
+ # Re-raise errors caught by the controller.
5
+ class DbFastController; def rescue_action(e) raise e end; end
6
+
7
+ class DbFastControllerTest < Test::Unit::TestCase
8
+ def setup
9
+ @controller = DbFastController.new
10
+ @request = ActionController::TestRequest.new
11
+ @response = ActionController::TestResponse.new
12
+ end
13
+
14
+ # Replace this with your real tests.
15
+ def test_truth
16
+ assert true
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ require 'fast_controller'
3
+
4
+ # Re-raise errors caught by the controller.
5
+ class FastController; def rescue_action(e) raise e end; end
6
+
7
+ class FastControllerTest < Test::Unit::TestCase
8
+ def setup
9
+ @controller = FastController.new
10
+ @request = ActionController::TestRequest.new
11
+ @response = ActionController::TestResponse.new
12
+ end
13
+
14
+ # Replace this with your real tests.
15
+ def test_truth
16
+ assert true
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ require 'slow_controller'
3
+
4
+ # Re-raise errors caught by the controller.
5
+ class SlowController; def rescue_action(e) raise e end; end
6
+
7
+ class SlowControllerTest < Test::Unit::TestCase
8
+ def setup
9
+ @controller = SlowController.new
10
+ @request = ActionController::TestRequest.new
11
+ @response = ActionController::TestResponse.new
12
+ end
13
+
14
+ # Replace this with your real tests.
15
+ def test_truth
16
+ assert true
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ require 'very_slow_controller'
3
+
4
+ # Re-raise errors caught by the controller.
5
+ class VerySlowController; def rescue_action(e) raise e end; end
6
+
7
+ class VerySlowControllerTest < Test::Unit::TestCase
8
+ def setup
9
+ @controller = VerySlowController.new
10
+ @request = ActionController::TestRequest.new
11
+ @response = ActionController::TestResponse.new
12
+ end
13
+
14
+ # Replace this with your real tests.
15
+ def test_truth
16
+ assert true
17
+ end
18
+ end
@@ -0,0 +1,28 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class Test::Unit::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ self.use_transactional_fixtures = true
19
+
20
+ # Instantiated fixtures are slow, but give you @david where otherwise you
21
+ # would need people(:david). If you don't want to migrate your existing
22
+ # test cases which use the @david style and don't mind the speed hit (each
23
+ # instantiated fixtures translates to a database query per test method),
24
+ # then set this back to true.
25
+ self.use_instantiated_fixtures = false
26
+
27
+ # Add more helper methods to be used by all tests here...
28
+ end
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestEc2onrails < Test::Unit::TestCase
4
+
5
+ def setup
6
+ end
7
+
8
+ def test_truth
9
+ assert true
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/ec2onrails'
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Empact-ec2onrails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.9
5
+ platform: ruby
6
+ authors:
7
+ - Paul Dowman
8
+ - Ben Woosley
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2008-07-01 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: capistrano
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - "="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.4.3
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: archive-tar-minitar
27
+ version_requirement:
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.5.1
33
+ version:
34
+ - !ruby/object:Gem::Dependency
35
+ name: optiflag
36
+ version_requirement:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 0.6.5
42
+ version:
43
+ description: Capistrano-based tool for easily deploying a Ruby on Rails app to Amazon EC2
44
+ email: http://pauldowman.com/contact/
45
+ executables: []
46
+
47
+ extensions: []
48
+
49
+ extra_rdoc_files: []
50
+
51
+ files:
52
+ - CHANGELOG
53
+ - LICENSE
54
+ - README.rdoc
55
+ - Rakefile
56
+ - examples/deploy.rb
57
+ - examples/Capfile
58
+ - examples/s3.yml
59
+ - lib/ec2onrails.rb
60
+ - lib/ec2onrails/recipes.rb
61
+ - lib/ec2onrails/capistrano_utils.rb
62
+ - lib/ec2onrails/version.rb
63
+ has_rdoc: false
64
+ homepage: http://github.com/Empact/ec2onrails/
65
+ post_install_message:
66
+ rdoc_options: []
67
+
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: "0"
75
+ version:
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
81
+ version:
82
+ requirements: []
83
+
84
+ rubyforge_project: ec2onrails
85
+ rubygems_version: 1.2.0
86
+ signing_key:
87
+ specification_version: 2
88
+ summary: Deploy a Ruby on Rails app on EC2 in five minutes
89
+ test_files:
90
+ - test/autobench.conf
91
+ - test/test_helper.rb
92
+ - test/test_app/public/dispatch.cgi
93
+ - test/test_app/public/robots.txt
94
+ - test/test_app/public/dispatch.rb
95
+ - test/test_app/public/images/rails.png
96
+ - test/test_app/public/dispatch.fcgi
97
+ - test/test_app/public/javascripts/controls.js
98
+ - test/test_app/public/javascripts/dragdrop.js
99
+ - test/test_app/public/javascripts/application.js
100
+ - test/test_app/public/javascripts/prototype.js
101
+ - test/test_app/public/javascripts/effects.js
102
+ - test/test_app/public/favicon.ico
103
+ - test/test_app/public/404.html
104
+ - test/test_app/public/500.html
105
+ - test/test_app/doc/README_FOR_APP
106
+ - test/test_app/script/console
107
+ - test/test_app/script/destroy
108
+ - test/test_app/script/runner
109
+ - test/test_app/script/plugin
110
+ - test/test_app/script/process
111
+ - test/test_app/script/process/inspector
112
+ - test/test_app/script/process/reaper
113
+ - test/test_app/script/process/spawner
114
+ - test/test_app/script/performance
115
+ - test/test_app/script/performance/request
116
+ - test/test_app/script/performance/profiler
117
+ - test/test_app/script/performance/benchmarker
118
+ - test/test_app/script/about
119
+ - test/test_app/script/server
120
+ - test/test_app/script/breakpointer
121
+ - test/test_app/script/generate
122
+ - test/test_app/app
123
+ - test/test_app/app/helpers
124
+ - test/test_app/app/helpers/application_helper.rb
125
+ - test/test_app/app/helpers/slow_helper.rb
126
+ - test/test_app/app/helpers/fast_helper.rb
127
+ - test/test_app/app/helpers/very_slow_helper.rb
128
+ - test/test_app/app/helpers/db_fast_helper.rb
129
+ - test/test_app/app/controllers/db_fast_controller.rb
130
+ - test/test_app/app/controllers/fast_controller.rb
131
+ - test/test_app/app/controllers/slow_controller.rb
132
+ - test/test_app/app/controllers/application.rb
133
+ - test/test_app/app/controllers/very_slow_controller.rb
134
+ - test/test_app/README
135
+ - test/test_app/db/schema.rb
136
+ - test/test_app/Rakefile
137
+ - test/test_app/config/database.yml
138
+ - test/test_app/config/environment.rb
139
+ - test/test_app/config/routes.rb
140
+ - test/test_app/config/deploy.rb
141
+ - test/test_app/config/environments/development.rb
142
+ - test/test_app/config/environments/test.rb
143
+ - test/test_app/config/environments/production.rb
144
+ - test/test_app/config/boot.rb
145
+ - test/test_app/test
146
+ - test/test_app/test/test_helper.rb
147
+ - test/test_app/test/functional/db_fast_controller_test.rb
148
+ - test/test_app/test/functional/slow_controller_test.rb
149
+ - test/test_app/test/functional/very_slow_controller_test.rb
150
+ - test/test_app/test/functional/fast_controller_test.rb
151
+ - test/test_app/Capfile
152
+ - test/spec/test_files/test1
153
+ - test/spec/test_files/test2
154
+ - test/spec/lib/s3_old.yml
155
+ - test/spec/lib/s3_helper_spec.rb
156
+ - test/test_ec2onrails.rb