Permalink
Browse files

initial checkin

  • Loading branch information...
1 parent 6c3b069 commit 5f8de2cab94f440de5846c2d5761e8720ecdd4ec @pauldowman committed Oct 6, 2007
Showing with 5,872 additions and 0 deletions.
  1. +339 −0 COPYING
  2. +339 −0 gem/COPYING.txt
  3. +4 −0 gem/History.txt
  4. +25 −0 gem/Manifest.txt
  5. +1 −0 gem/README.txt
  6. +4 −0 gem/Rakefile
  7. +70 −0 gem/config/hoe.rb
  8. +17 −0 gem/config/requirements.rb
  9. +20 −0 gem/lib/ec2onrails.rb
  10. +303 −0 gem/lib/ec2onrails/recipes.rb
  11. +27 −0 gem/lib/ec2onrails/version.rb
  12. +14 −0 gem/script/destroy
  13. +14 −0 gem/script/generate
  14. +74 −0 gem/script/txt2html
  15. +1,585 −0 gem/setup.rb
  16. +27 −0 gem/tasks/deployment.rake
  17. +7 −0 gem/tasks/environment.rake
  18. +17 −0 gem/tasks/website.rake
  19. +11 −0 gem/test/test_ec2onrails.rb
  20. +2 −0 gem/test/test_helper.rb
  21. +90 −0 gem/website/index.html
  22. +38 −0 gem/website/index.txt
  23. +285 −0 gem/website/javascripts/rounded_corners_lite.inc.js
  24. +138 −0 gem/website/stylesheets/screen.css
  25. +48 −0 gem/website/template.rhtml
  26. +9 −0 server/config.yml.template
  27. +668 −0 server/files/etc/apache2/apache2.conf
  28. +10 −0 server/files/etc/apache2/conf.d/app.proxy_cluster.conf
  29. +10 −0 server/files/etc/apache2/conf.d/app.proxy_frontend.conf
  30. +18 −0 server/files/etc/apache2/mods-available/proxy.conf
  31. +50 −0 server/files/etc/apache2/sites-available/app.common
  32. 0 server/files/etc/apache2/sites-available/app.custom
  33. +14 −0 server/files/etc/apache2/sites-available/default
  34. +43 −0 server/files/etc/apt/sources.list
  35. +43 −0 server/files/etc/apt/sources.list.apt-cache
  36. +1 −0 server/files/etc/cron.d/backup_app_db_to_s3
  37. +2 −0 server/files/etc/default/apache2
  38. +2 −0 server/files/etc/fstab
  39. +1 −0 server/files/etc/hostname
  40. +10 −0 server/files/etc/hosts
  41. +29 −0 server/files/etc/init.d/ec2-every-startup
  42. +36 −0 server/files/etc/init.d/ec2-first-startup
  43. +85 −0 server/files/etc/init.d/mongrel
  44. +7 −0 server/files/etc/mongrel_cluster/app.yml
  45. +13 −0 server/files/etc/motd.tail
  46. +5 −0 server/files/etc/network/interfaces
  47. +1 −0 server/files/etc/rc0.d/K10mongrel
  48. +1 −0 server/files/etc/rc1.d/K10mongrel
  49. +1 −0 server/files/etc/rc2.d/S90mongrel
  50. +1 −0 server/files/etc/rc3.d/S90mongrel
  51. +1 −0 server/files/etc/rc4.d/S90mongrel
  52. +1 −0 server/files/etc/rc5.d/S90mongrel
  53. +1 −0 server/files/etc/rc6.d/K10mongrel
  54. +1 −0 server/files/etc/rcS.d/S91ec2-first-startup
  55. +1 −0 server/files/etc/rcS.d/S92ec2-every-startup
  56. +81 −0 server/files/etc/ssh/sshd_config
  57. +24 −0 server/files/etc/sudoers
  58. +1 −0 server/files/etc/timezone
  59. +339 −0 server/files/usr/local/ec2onrails/COPYING
  60. +38 −0 server/files/usr/local/ec2onrails/bin/backup_app_db.rb
  61. +31 −0 server/files/usr/local/ec2onrails/bin/install_ec2_api_tools.sh
  62. +29 −0 server/files/usr/local/ec2onrails/bin/mongrel_cluster_ctl_wrapper
  63. +56 −0 server/files/usr/local/ec2onrails/bin/rebundle.sh
  64. +45 −0 server/files/usr/local/ec2onrails/bin/restore_app_db.rb
  65. +67 −0 server/files/usr/local/ec2onrails/bin/s3_lib.rb
  66. +16 −0 server/files/usr/local/ec2onrails/config
  67. +27 −0 server/files/usr/local/ec2onrails/startup-scripts/every-startup/get-hostname.sh
  68. +37 −0 server/files/usr/local/ec2onrails/startup-scripts/first-startup/create-dirs.sh
  69. +46 −0 server/files/usr/local/ec2onrails/startup-scripts/first-startup/get-public-key.sh
  70. +22 −0 server/files/usr/local/ec2onrails/startup-scripts/first-startup/misc.sh
  71. +31 −0 server/files/usr/local/ec2onrails/startup-scripts/first-startup/randomize-passwords.sh
  72. +26 −0 server/files/usr/local/ec2onrails/startup-scripts/first-startup/set-ssh-path.sh
  73. +41 −0 server/prepare.sh
  74. +351 −0 server/rakefile.rb
View
339 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,4 @@
+== 0.0.1 2007-09-30
+
+* 1 major enhancement:
+ * Initial release
View
@@ -0,0 +1,25 @@
+History.txt
+COPYING.txt
+Manifest.txt
+README.txt
+Rakefile
+config/hoe.rb
+config/requirements.rb
+lib/ec2onrails.rb
+lib/ec2onrails/recipes.rb
+lib/ec2onrails/version.rb
+log/debug.log
+script/destroy
+script/generate
+script/txt2html
+setup.rb
+tasks/deployment.rake
+tasks/environment.rake
+tasks/website.rake
+test/test_ec2onrails.rb
+test/test_helper.rb
+website/index.html
+website/index.txt
+website/javascripts/rounded_corners_lite.inc.js
+website/stylesheets/screen.css
+website/template.rhtml
View
@@ -0,0 +1 @@
+README
View
@@ -0,0 +1,4 @@
+require 'config/requirements'
+require 'config/hoe' # setup Hoe + all gem configuration
+
+Dir['tasks/**/*.rake'].each { |rake| load rake }
View
@@ -0,0 +1,70 @@
+require 'ec2onrails/version'
+
+AUTHOR = 'Paul Dowman' # can also be an array of Authors
+EMAIL = "paul@pauldowman.com"
+DESCRIPTION = "Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers."
+GEM_NAME = 'ec2onrails' # what ppl will type to install your gem
+RUBYFORGE_PROJECT = 'ec2onrails' # The unix name for your project
+HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
+DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
+
+@config_file = "~/.rubyforge/user-config.yml"
+@config = nil
+RUBYFORGE_USERNAME = "unknown"
+def rubyforge_username
+ unless @config
+ begin
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
+ rescue
+ puts <<-EOS
+ERROR: No rubyforge config file found: #{@config_file}
+Run 'rubyforge setup' to prepare your env for access to Rubyforge
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
+ EOS
+ exit
+ end
+ end
+ RUBYFORGE_USERNAME.replace @config["username"]
+end
+
+
+REV = nil
+# UNCOMMENT IF REQUIRED:
+# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
+VERS = Ec2onrails::VERSION::STRING + (REV ? ".#{REV}" : "")
+RDOC_OPTS = ['--quiet', '--title', 'ec2onrails documentation',
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "README",
+ "--inline-source"]
+
+class Hoe
+ def extra_deps
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
+ @extra_deps
+ end
+end
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+hoe = Hoe.new(GEM_NAME, VERS) do |p|
+ p.author = AUTHOR
+ p.description = DESCRIPTION
+ p.email = EMAIL
+ p.summary = DESCRIPTION
+ p.url = HOMEPATH
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
+ p.test_globs = ["test/**/test_*.rb"]
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
+
+ # == Optional
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
+ #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
+
+ #p.spec_extras = {} # A hash of extra values to set in the gemspec.
+
+end
+
+CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
+PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
+hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
View
@@ -0,0 +1,17 @@
+require 'fileutils'
+include FileUtils
+
+require 'rubygems'
+%w[rake hoe newgem rubigen].each do |req_gem|
+ begin
+ require req_gem
+ rescue LoadError
+ puts "This Rakefile requires the '#{req_gem}' RubyGem."
+ puts "Installation: gem install #{req_gem} -y"
+ exit
+ end
+end
+
+$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
+
+require 'ec2onrails'
View
@@ -0,0 +1,20 @@
+# This file is part of EC2 on Rails.
+# http://rubyforge.org/projects/ec2onrails/
+#
+# Copyright 2007 Paul Dowman, http://pauldowman.com/
+#
+# EC2 on Rails is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# EC2 on Rails is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+$:.unshift File.dirname(__FILE__)
Oops, something went wrong.

0 comments on commit 5f8de2c

Please sign in to comment.