Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added new deploy environment

  • Loading branch information...
commit 856f3846da4745152ed8bad07b663f4b8d0ea013 1 parent 0ec9949
@andyl authored
Showing with 885 additions and 418 deletions.
  1. +1 −1  .idea/.generators
  2. +127 −132 .idea/BAMRU-Private.iml
  3. +1 −1  .idea/misc.xml
  4. +54 −247 .idea/workspace.xml
  5. +1 −0  .rbenv-version
  6. +0 −3  .rvmrc
  7. +1 −0  .vagrant
  8. +44 −6 Capfile
  9. +3 −1 Gemfile
  10. +16 −27 Gemfile.lock
  11. +24 −0 Vagrantfile
  12. +8 −0 config/deploy/production.rb
  13. +17 −0 config/deploy/shared/.gitignore
  14. +29 −0 config/deploy/shared/base/base.rb
  15. +17 −0 config/deploy/shared/base/colors.rb
  16. +46 −0 config/deploy/shared/base/ghost.rb
  17. +27 −0 config/deploy/shared/base/helpers.rb
  18. +30 −0 config/deploy/shared/packages/foreman.rb
  19. +20 −0 config/deploy/shared/packages/nginx.rb
  20. +9 −0 config/deploy/shared/packages/nodejs.rb
  21. +26 −0 config/deploy/shared/packages/passenger.rb
  22. +34 −0 config/deploy/shared/packages/postgresql.rb
  23. +27 −0 config/deploy/shared/packages/rbenv.rb
  24. +22 −0 config/deploy/shared/packages/sqlite.rb
  25. +9 −0 config/deploy/shared/packages/templates/nginx_passenger.erb
  26. +27 −0 config/deploy/shared/packages/templates/nginx_unicorn.erb
  27. +8 −0 config/deploy/shared/packages/templates/postgresql.yml.erb
  28. +8 −0 config/deploy/shared/packages/templates/unicorn.rb.erb
  29. +84 −0 config/deploy/shared/packages/templates/unicorn_init.erb
  30. +26 −0 config/deploy/shared/packages/unicorn.rb
  31. +29 −0 config/deploy/shared/recipes/app.rb
  32. +63 −0 config/deploy/shared/recipes/depext.rb
  33. +24 −0 config/deploy/shared/recipes/deploy.rb
  34. +17 −0 config/deploy/shared/sync
  35. +6 −0 config/deploy/staging.rb
View
2  .idea/.generators
@@ -5,4 +5,4 @@ You are allowed to:
2. Remove generators
3. Add installed generators
To add new installed generators automatically delete this file and reload the project.
---><GeneratorsGroup><Generator name="assets" /><Generator name="cancan:ability" /><Generator name="controller" /><Generator name="decorator" /><Generator name="draper:decorator" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="jquery:install" /><Generator name="js:assets" /><Generator name="mailer" /><Generator name="migration" /><Generator name="model" /><Generator name="observer" /><Generator name="paperclip" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="rspec:controller" /><Generator name="rspec:decorator" /><Generator name="rspec:helper" /><Generator name="rspec:install" /><Generator name="rspec:integration" /><Generator name="rspec:mailer" /><Generator name="rspec:model" /><Generator name="rspec:observer" /><Generator name="rspec:scaffold" /><Generator name="rspec:view" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="simple_form:install" /><Generator name="test_unit:controller" /><Generator name="test_unit:decorator" /><Generator name="test_unit:helper" /><Generator name="test_unit:integration" /><Generator name="test_unit:mailer" /><Generator name="test_unit:model" /><Generator name="test_unit:observer" /><Generator name="test_unit:performance" /><Generator name="test_unit:plugin" /><Generator name="test_unit:scaffold" /></GeneratorsGroup></Settings>
+--><GeneratorsGroup><Generator name="assets" /><Generator name="cancan:ability" /><Generator name="chef_cap:install" /><Generator name="controller" /><Generator name="decorator" /><Generator name="draper:decorator" /><Generator name="draper:install" /><Generator name="erb:controller" /><Generator name="erb:mailer" /><Generator name="erb:scaffold" /><Generator name="factory_girl:model" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="jquery:install" /><Generator name="js:assets" /><Generator name="mailer" /><Generator name="migration" /><Generator name="model" /><Generator name="observer" /><Generator name="paperclip" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="rspec:controller" /><Generator name="rspec:helper" /><Generator name="rspec:install" /><Generator name="rspec:integration" /><Generator name="rspec:mailer" /><Generator name="rspec:model" /><Generator name="rspec:observer" /><Generator name="rspec:scaffold" /><Generator name="rspec:view" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="simple_form:install" /></GeneratorsGroup></Settings>
View
259 .idea/BAMRU-Private.iml
@@ -20,138 +20,133 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="library" scope="PROVIDED" name="Ascii85 (v1.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="aalf (v0.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="actionmailer (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="actionpack (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="activemodel (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="activerecord (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="activeresource (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="activesupport (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="addressable (v2.2.7, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ancestry (v1.2.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="annotate (v2.4.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="archive-tar-minitar (v0.5.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="arel (v2.2.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.0.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="bcrypt-ruby (v3.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="blankslate (v2.1.2.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="builder (v3.0.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="cancan (v1.6.7, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="capistrano (v2.11.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="capybara (v1.1.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v0.11.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.3.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="chronic (v0.6.7, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="chunky_png (v1.2.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="cocaine (v0.2.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="coffee-script (v2.2.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="coffee-script-source (v1.2.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="columnize (v0.3.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="csv-mapper (v0.5.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="daemons (v1.1.8, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="database_cleaner (v0.7.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="draper (v0.11.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="drx (v0.4.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="dynamic_form (v1.1.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="em-hiredis (v0.1.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="em-http-request (v0.3.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="escape_utils (v0.2.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="eventmachine (v0.12.10, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="execjs (v1.3.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="factory_girl (v2.6.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="factory_girl_rails (v1.7.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="faker (v1.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="fastercsv (v1.5.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="faye (v0.6.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ffi (v1.0.11, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="foreman (v0.41.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="guard (v1.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="guard-coffeescript (v0.5.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="haml (v3.1.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="haml-rails (v0.3.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.11, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="hike (v1.2.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="hirb (v0.6.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="hiredis (v0.4.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="interactive_editor (v0.0.10, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="jasminerice (v0.0.8, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="jquery-rails (v1.0.19, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="json (v1.6.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="launchy (v2.1.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="letter_opener (v0.0.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="libv8 (v3.3.10.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="linecache19 (v0.5.13, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="mail (v2.3.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="mail_view (v1.0.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="mime (v0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.17.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.1.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="net-scp (v1.0.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.0.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.3.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="net-ssh-gateway (v1.1.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.5.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="oauth (v0.4.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="paperclip (v2.7.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="parslet (v1.3.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="pdf-reader (v1.0.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="pngqr (v0.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="polyglot (v0.3.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="prawn (v0.12.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rabl (v0.6.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack (v1.3.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack-cache (v1.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack-mount (v0.8.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack-offline (v0.6.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack-ssl (v1.3.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rails (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="railties (v3.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.8.8, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rdoc (v3.12, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rmagick (v2.13.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rqrcode (v0.4.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rspec (v2.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rspec-rails (v2.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19 (v0.11.26, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ruby-debug19 (v0.11.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ruby-gmail (v0.2.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ruby-rc4 (v0.1.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ruby_core_source (v0.1.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.6.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="sass (v3.1.15, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.20.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="shared-mime-info (v0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="shoulda-matchers (v1.0.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="simple_form (v2.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.6.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.5.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="spoon (v0.0.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="spork (v0.9.0, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="sprite-factory (v1.4.2, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="sprockets (v2.0.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.3.5, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="sqlite3-ruby (v1.3.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="therubyracer (v0.9.10, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="thin (v1.3.1, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="thor (v0.14.6, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="tilt (v1.3.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="treetop (v1.4.10, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="ttfunk (v1.0.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="tzinfo (v0.3.32, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="uglifier (v1.2.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="whenever (v0.7.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="wirble (v0.1.3, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="xpath (v0.1.4, RVM: ruby-1.9.3-p0 [private]) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="Ascii85 (v1.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="aalf (v0.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="actionmailer (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="actionpack (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="activemodel (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="activerecord (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="activeresource (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.2.7, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="ancestry (v1.2.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="annotate (v2.4.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="arel (v2.2.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.0.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="bcrypt-ruby (v3.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="blankslate (v2.1.2.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="cancan (v1.6.7, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="capistrano (v2.11.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="capybara (v1.1.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v0.11.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="chef_cap (v0.3.16, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.3.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="chronic (v0.6.7, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="chunky_png (v1.2.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="cocaine (v0.2.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="coffee-script (v2.2.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="coffee-script-source (v1.2.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="csv-mapper (v0.5.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="daemons (v1.1.8, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="database_cleaner (v0.7.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="draper (v0.11.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="drx (v0.4.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="dynamic_form (v1.1.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="em-hiredis (v0.1.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="em-http-request (v0.3.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="escape_utils (v0.2.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="eventmachine (v0.12.10, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="execjs (v1.3.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="factory_girl (v3.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="factory_girl_rails (v3.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="faker (v1.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="fastercsv (v1.5.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="faye (v0.6.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.0.11, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="foreman (v0.41.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="guard (v1.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="guard-coffeescript (v0.5.6, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="haml (v3.1.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="haml-rails (v0.3.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.11, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="hike (v1.2.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="hirb (v0.6.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="hiredis (v0.4.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="interactive_editor (v0.0.10, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="jasminerice (v0.0.8, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="jquery-rails (v1.0.19, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.6.6, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="launchy (v2.1.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="letter_opener (v0.0.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="libv8 (v3.3.10.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="mail (v2.3.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="mail_view (v1.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="mime (v0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.18, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.1.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="net-scp (v1.0.4, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.0.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.3.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="net-ssh-gateway (v1.1.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.5.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="oauth (v0.4.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="paperclip (v3.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="parslet (v1.3.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="pdf-reader (v1.1.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="pngqr (v0.6, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="polyglot (v0.3.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="prawn (v0.12.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rabl (v0.6.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.3.6, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack-cache (v1.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack-mount (v0.8.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack-offline (v0.6.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack-ssl (v1.3.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rails (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="railties (v3.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.8.8, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rdoc (v3.12, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rmagick (v2.13.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rqrcode (v0.4.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rspec-rails (v2.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="ruby-gmail (v0.2.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="ruby-rc4 (v0.1.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.6.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="sass (v3.1.15, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.20.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="shared-mime-info (v0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="shoulda-matchers (v1.0.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="simple_form (v2.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.6.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.5.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="spoon (v0.0.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="spork (v0.9.0, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="sprite-factory (v1.4.2, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="sprockets (v2.0.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.3.5, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="sqlite3-ruby (v1.3.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="therubyracer (v0.9.10, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="thin (v1.3.1, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.14.6, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="tilt (v1.3.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="treetop (v1.4.10, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="ttfunk (v1.0.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v0.3.32, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="uglifier (v1.2.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="whenever (v0.7.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="wirble (v0.1.3, ruby-1.9.3-p125) [gem]" level="application" />
+ <orderEntry type="library" scope="PROVIDED" name="xpath (v0.1.4, ruby-1.9.3-p125) [gem]" level="application" />
</component>
<component name="RModuleSettingsStorage">
<LOAD_PATH number="0" />
View
2  .idea/misc.xml
@@ -6,6 +6,6 @@
<component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component>
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p0 [private]" project-jdk-type="RUBY_SDK" />
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.3-p125" project-jdk-type="RUBY_SDK" />
</project>
View
301 .idea/workspace.xml
@@ -9,8 +9,10 @@
</component>
<component name="ChangeListManager">
<list default="true" id="f26f2966-8589-467d-a3cc-bd6d2ed0f8a8" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/views/mobile3/index.html.erb" afterPath="$PROJECT_DIR$/app/views/mobile3/index.html.erb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/shared/recipes/capistrano_tasks.rb" afterPath="$PROJECT_DIR$/lib/shared/recipes/capistrano_tasks.rb" />
+ <change type="DELETED" beforePath="$PROJECT_DIR$/.rvmrc" afterPath="" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Capfile" afterPath="$PROJECT_DIR$/Capfile" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
</list>
<ignored path="BAMRU-Private.iws" />
<ignored path=".idea/workspace.xml" />
@@ -34,78 +36,6 @@
<flatten value="false" />
<groupTables value="false" />
</component>
- <component name="DockManager">
- <window id="1">
- <content type="file-editors">
- <state>
- <splitter split-orientation="horizontal" split-proportion="0.56875">
- <split-first>
- <leaf>
- <file leaf-file-name="mail.rake" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/lib/tasks/mail.rake">
- <provider selected="true" editor-type-id="text-editor">
- <state line="37" column="11" selection-start="958" selection-end="958" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="index.html.erb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/views/members/index.html.erb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="16" column="49" selection-start="526" selection-end="526" vertical-scroll-proportion="-4.897959">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="_page_form.html.erb" pinned="false" current="false" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/app/views/members/_page_form.html.erb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="24" column="37" selection-start="1135" selection-end="1135" vertical-scroll-proportion="0.5546875">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- </leaf>
- </split-first>
- <split-second>
- <leaf>
- <file leaf-file-name="messages_show_table.js.coffee" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/messages/messages_show_table.js.coffee">
- <provider selected="true" editor-type-id="text-editor">
- <state line="11" column="11" selection-start="391" selection-end="391" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="members_controller.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/controllers/members_controller.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="16" column="5" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="messages_controller.rb" pinned="false" current="false" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/app/controllers/messages_controller.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="21" column="82" selection-start="748" selection-end="749" vertical-scroll-proportion="0.33333334">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- </leaf>
- </split-second>
- </splitter>
- </state>
- </content>
- </window>
- </component>
<component name="FavoritesManager">
<favorites_list name="BAMRU-Private">
<favorite_root url="file://$PROJECT_DIR$/app/assets/javascripts/messages" module="BAMRU-Private" type="directory" klass="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
@@ -114,31 +44,31 @@
</favorites_list>
</component>
<component name="FileEditorManager">
- <splitter split-orientation="horizontal" split-proportion="0.7604674">
+ <splitter split-orientation="horizontal" split-proportion="0.5189137">
<split-first>
<leaf>
- <file leaf-file-name="sessions_controller.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/controllers/mobile4/sessions_controller.rb">
+ <file leaf-file-name="index.html.erb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/app/views/mobile3/index.html.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="42" column="35" selection-start="1595" selection-end="1595" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="index.html.erb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/views/mobile4/index.html.erb">
+ <file leaf-file-name="Capfile" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/Capfile">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="42" selection-start="1329" selection-end="1329" vertical-scroll-proportion="-13.125">
+ <state line="11" column="0" selection-start="313" selection-end="313" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="index.html.erb" pinned="false" current="true" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/app/views/mobile3/index.html.erb">
+ <file leaf-file-name="application.rb" pinned="false" current="false" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/config/application.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="44" column="40" selection-start="1702" selection-end="1702" vertical-scroll-proportion="0.48859936">
+ <state line="23" column="0" selection-start="825" selection-end="825" vertical-scroll-proportion="0.023510972">
<folding />
</state>
</provider>
@@ -148,28 +78,10 @@
</split-first>
<split-second>
<leaf>
- <file leaf-file-name="distribution.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/models/distribution.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="87" column="15" selection-start="2609" selection-end="2609" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="true">
+ <file leaf-file-name="Gemfile" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Gemfile">
<provider selected="true" editor-type-id="text-editor">
- <state line="64" column="51" selection-start="1359" selection-end="1359" vertical-scroll-proportion="0.49161074">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="history_controller.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/app/controllers/history_controller.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="20" column="47" selection-start="678" selection-end="678" vertical-scroll-proportion="0.0">
+ <state line="21" column="14" selection-start="349" selection-end="349" vertical-scroll-proportion="0.023510972">
<folding />
</state>
</provider>
@@ -197,7 +109,6 @@
<component name="IdeDocumentHistory">
<option name="changedFiles">
<list>
- <option value="$PROJECT_DIR$/app/helpers/application_helper.rb" />
<option value="$PROJECT_DIR$/app/views/history/show.html.erb" />
<option value="$PROJECT_DIR$/app/views/messages/show.html.erb" />
<option value="$PROJECT_DIR$/app/models/inbound_mail.rb" />
@@ -210,9 +121,10 @@
<option value="$PROJECT_DIR$/app/helpers/messages_helper.rb" />
<option value="$PROJECT_DIR$/app/controllers/messages_controller.rb" />
<option value="$PROJECT_DIR$/app/assets/javascripts/messages/messages_indx_table.js.coffee" />
- <option value="$PROJECT_DIR$/Gemfile" />
<option value="$PROJECT_DIR$/lib/shared/recipes/capistrano_tasks.rb" />
<option value="$PROJECT_DIR$/app/views/mobile3/index.html.erb" />
+ <option value="$PROJECT_DIR$/Gemfile" />
+ <option value="$PROJECT_DIR$/Capfile" />
</list>
</option>
</component>
@@ -333,78 +245,6 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="app" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="views" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="app" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="views" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="mobile3" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="app" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BAMRU-Private" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="app" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="controllers" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
</subPane>
</pane>
<pane id="RailsProjectView">
@@ -423,14 +263,14 @@
<property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth0" value="88" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth1" value="105" />
<property name="options.splitter.main.proportions" value="0.3" />
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder1" value="1" />
- <property name="recentsLimit" value="5" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth0" value="97" />
+ <property name="recentsLimit" value="5" />
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder1" value="1" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder0" value="0" />
- <property name="RakeTaksPopup.undocumentedIncluded" value="false" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth2" value="110" />
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth3" value="947" />
+ <property name="RakeTaksPopup.undocumentedIncluded" value="false" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth3" value="934" />
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth3" value="947" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth2" value="112" />
<property name="GoToClass.includeJavaFiles" value="false" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth1" value="107" />
@@ -442,7 +282,7 @@
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder3" value="3" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder1" value="1" />
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder2" value="2" />
- <property name="options.lastSelected" value="preferences.sourceCode.HAML" />
+ <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
<property name="dynamic.classpath" value="false" />
<property name="Ruby.ViewRefParam.DefaultExtension" value="html.erb" />
<property name="options.searchVisible" value="true" />
@@ -861,14 +701,13 @@
</component>
<component name="ToolWindowManager">
<frame x="52" y="768" width="1280" height="775" extended-state="0" />
- <editor active="true" />
+ <editor active="false" />
<layout>
<window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32924837" sideWeight="0.2324159" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.67737" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.37961596" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25490198" sideWeight="0.40978593" order="1" side_tool="true" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.19261007" sideWeight="0.4549483" order="0" side_tool="false" content_ui="combo" />
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1894654" sideWeight="0.4549483" order="0" side_tool="false" content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3988183" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2955975" sideWeight="0.53471196" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33944955" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
@@ -878,6 +717,7 @@
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.37961596" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32647058" sideWeight="0.0" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Coverage" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3294025" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
@@ -945,116 +785,83 @@
</breakpoint-manager>
</component>
<component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/db/migrate/20120320154000_change_member_login_at.rb">
+ <entry file="file://$PROJECT_DIR$/app/models/distribution.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="11" column="0" selection-start="297" selection-end="297" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="87" column="15" selection-start="2609" selection-end="2609" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/lib/tasks/mail.rake">
+ <entry file="file://$PROJECT_DIR$/lib/shared/recipes/capistrano_tasks.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="37" column="11" selection-start="958" selection-end="958" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="54" column="0" selection-start="1695" selection-end="1695" vertical-scroll-proportion="-10.8" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/messages/_repage_popup.html.erb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="32" column="0" selection-start="1066" selection-end="1066" vertical-scroll-proportion="-12.5">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/app/helpers/messages_helper.rb">
+ <entry file="file://$PROJECT_DIR$/app/controllers/mobile4/sessions_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="25" column="0" selection-start="800" selection-end="800" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/controllers/messages_controller.rb">
+ <entry file="file://$PROJECT_DIR$/app/views/mobile4/index.html.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="21" column="82" selection-start="748" selection-end="749" vertical-scroll-proportion="0.33333334">
- <folding />
- </state>
+ <state line="36" column="42" selection-start="1329" selection-end="1329" vertical-scroll-proportion="-13.125" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/messages/index.html.erb">
+ <entry file="file://$PROJECT_DIR$/app/controllers/history_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="47" selection-start="47" selection-end="47" vertical-scroll-proportion="-0.0">
- <folding />
- </state>
+ <state line="20" column="47" selection-start="678" selection-end="678" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/messages/all_messages_indx.js">
+ <entry file="file://$PROJECT_DIR$/lib/tasks/mail.rake">
<provider selected="true" editor-type-id="text-editor">
- <state line="7" column="25" selection-start="214" selection-end="214" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="n#!!doc" expanded="true" />
- </folding>
- </state>
+ <state line="37" column="11" selection-start="958" selection-end="958" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/views/members/index.html.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="49" selection-start="526" selection-end="526" vertical-scroll-proportion="-4.897959">
- <folding />
- </state>
+ <state line="16" column="49" selection-start="526" selection-end="526" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/views/members/_page_form.html.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="24" column="37" selection-start="1135" selection-end="1135" vertical-scroll-proportion="0.5546875">
- <folding />
- </state>
+ <state line="24" column="37" selection-start="1135" selection-end="1135" vertical-scroll-proportion="0.34375" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/messages/messages_indx_table.js.coffee">
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/messages/messages_show_table.js.coffee">
<provider selected="true" editor-type-id="text-editor">
- <state line="26" column="36" selection-start="753" selection-end="753" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="11" column="11" selection-start="391" selection-end="391" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/models/distribution.rb">
+ <entry file="file://$PROJECT_DIR$/app/controllers/members_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="87" column="15" selection-start="2609" selection-end="2609" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="16" column="5" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/Gemfile">
+ <entry file="file://$PROJECT_DIR$/app/controllers/messages_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="64" column="51" selection-start="1359" selection-end="1359" vertical-scroll-proportion="0.49161074">
- <folding />
- </state>
+ <state line="21" column="82" selection-start="748" selection-end="749" vertical-scroll-proportion="0.05120482" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/lib/shared/recipes/capistrano_tasks.rb">
+ <entry file="file://$PROJECT_DIR$/app/views/mobile3/index.html.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="54" column="0" selection-start="1695" selection-end="1695" vertical-scroll-proportion="-10.8">
- <folding />
- </state>
+ <state line="42" column="35" selection-start="1595" selection-end="1595" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/controllers/mobile4/sessions_controller.rb">
+ <entry file="file://$PROJECT_DIR$/Capfile">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="11" column="0" selection-start="313" selection-end="313" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/mobile4/index.html.erb">
+ <entry file="file://$PROJECT_DIR$/config/application.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="42" selection-start="1329" selection-end="1329" vertical-scroll-proportion="-13.125">
+ <state line="23" column="0" selection-start="825" selection-end="825" vertical-scroll-proportion="0.023510972">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/mobile3/index.html.erb">
+ <entry file="file://$PROJECT_DIR$/Gemfile">
<provider selected="true" editor-type-id="text-editor">
- <state line="44" column="40" selection-start="1702" selection-end="1702" vertical-scroll-proportion="0.48859936">
+ <state line="21" column="14" selection-start="349" selection-end="349" vertical-scroll-proportion="0.023510972">
<folding />
</state>
</provider>
View
1  .rbenv-version
@@ -0,0 +1 @@
+1.9.3-p194
View
3  .rvmrc
@@ -1,3 +0,0 @@
-export rvm_gemset_create_on_use_flag=1
-rvm use 1.9.3@private
-
View
1  .vagrant
@@ -0,0 +1 @@
+{"active":{"default":"67cd342b-effe-4402-b49c-075df326d060"}}
View
50 Capfile
@@ -1,11 +1,49 @@
-PRIMARY = "bamru.net"
-#BACKUP = "backup.bamru.net"
-APPDIR = "BAMRU-Private"
+require 'rubygems'
+require 'bundler/setup'
+# ====== Deployment Stages =====
+set :stages, %w(staging production)
+set :default_stage, "staging"
+set :user, "vagrant" # vagrant, aleak
+set :proxy, "bnetv" # bnetv, bnetx,
+
+# ===== App Config =====
set :application, "BAMRU-Private"
+set :app_name, "bnet"
+set :repository, "https://github.com/andyl/#{application}.git"
+set :vhost_names, %w(borg borgtest)
+set :web_port, 9500
+
+# ===== Stage-Specific Code (config/deploy/<stage>) =====
+require 'capistrano/ext/multistage'
+
+# ===== Common Code for All Stages =====
+load 'deploy'
+base_dir = File.expand_path(File.dirname(__FILE__))
+Dir.glob("config/deploy/shared/base/*.rb").each {|f| require base_dir + '/' + f}
+Dir.glob("config/deploy/shared/recipes/*.rb").each {|f| require base_dir + '/' + f}
+
+# ===== Package Definitions =====
+require base_dir + "/config/deploy/shared/packages/nginx"
+require base_dir + "/config/deploy/shared/packages/foreman"
+require base_dir + "/config/deploy/shared/packages/sqlite"
+
+# ===== Package Definitions =====
+
+after 'deploy:setup', 'keys:upload'
+
+namespace :keys do
-load 'deploy' if respond_to?(:namespace)
-Dir['vendor/plugins/*/recipes/*.rb'].each { |p| load p }
-Dir['lib/shared/recipes/*.rb'].each { |p| load p }
+ desc "upload keys"
+ task :upload do
+ file = ".bnet_environment.yaml"
+ keyfile = File.expand_path("~/#{file}")
+ keytext = File.read(keyfile)
+ tgtfile = "/home/#{user}/#{file}"
+ put keytext, tgtfile
+ run "chown -R #{user} #{tgtfile}"
+ run "chgrp -R #{user} #{tgtfile}"
+ end
+end
View
4 Gemfile
@@ -19,6 +19,8 @@ platforms :ruby do
gem "haml-rails"
gem "capistrano"
+ gem "chef_cap"
+
gem "fastercsv"
gem "nokogiri"
gem "simple_form"
@@ -62,7 +64,7 @@ platforms :ruby do
gem "guard-coffeescript"
gem "faker"
gem "simplecov"
- gem "ruby-debug19", :require => "ruby-debug" # if ENV['SYSNAME'] == 'ekel'
+ # gem "ruby-debug19", :require => "ruby-debug" # if ENV['SYSNAME'] == 'ekel'
gem "rspec-rails"
gem "shoulda-matchers"
gem "selenium-webdriver"
View
43 Gemfile.lock
@@ -55,7 +55,6 @@ GEM
addressable (2.2.7)
ancestry (1.2.5)
activerecord (>= 2.2.2)
- archive-tar-minitar (0.5.2)
arel (2.2.3)
awesome_print (1.0.2)
bcrypt-ruby (3.0.1)
@@ -78,6 +77,8 @@ GEM
capybara-webkit (0.11.0)
capybara (>= 1.0.0, < 1.2)
json
+ chef_cap (0.3.16)
+ capistrano (>= 2.5.5)
childprocess (0.3.1)
ffi (~> 1.0.6)
chronic (0.6.7)
@@ -87,11 +88,10 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.2.0)
- columnize (0.3.6)
csv-mapper (0.5.1)
fastercsv
daemons (1.1.8)
- database_cleaner (0.7.1)
+ database_cleaner (0.7.2)
diff-lcs (1.1.3)
draper (0.11.1)
activesupport (>= 2.3.10)
@@ -108,10 +108,10 @@ GEM
eventmachine (0.12.10)
execjs (1.3.0)
multi_json (~> 1.0)
- factory_girl (2.6.4)
- activesupport (>= 2.3.9)
- factory_girl_rails (1.7.0)
- factory_girl (~> 2.6.0)
+ factory_girl (3.0.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (3.0.0)
+ factory_girl (~> 3.0.0)
railties (>= 3.0.0)
faker (1.0.1)
i18n (~> 0.4)
@@ -150,20 +150,18 @@ GEM
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
- json (1.6.5)
+ json (1.6.6)
launchy (2.1.0)
addressable (~> 2.2.6)
letter_opener (0.0.2)
launchy
libv8 (3.3.10.4)
- linecache19 (0.5.13)
- ruby_core_source (>= 0.1.4)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime (0.1)
- mime-types (1.17.2)
+ mime-types (1.18)
multi_json (1.1.0)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
@@ -174,14 +172,15 @@ GEM
net-ssh (>= 1.99.1)
nokogiri (1.5.2)
oauth (0.4.5)
- paperclip (2.7.0)
- activerecord (>= 2.3.0)
- activesupport (>= 2.3.2)
+ paperclip (3.0.0)
+ activemodel (>= 3.0.0)
+ activerecord (>= 3.0.0)
+ activesupport (>= 3.0.0)
cocaine (>= 0.0.2)
mime-types
parslet (1.3.0)
blankslate (~> 2.0)
- pdf-reader (1.0.0)
+ pdf-reader (1.1.0)
Ascii85 (~> 1.0.0)
ruby-rc4
pngqr (0.6)
@@ -191,7 +190,7 @@ GEM
prawn (0.12.0)
pdf-reader (>= 0.9.0)
ttfunk (~> 1.0.2)
- rabl (0.6.1)
+ rabl (0.6.2)
activesupport (>= 2.3.14)
multi_json (~> 1.1.0)
rack (1.3.6)
@@ -239,20 +238,10 @@ GEM
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.9.0)
- ruby-debug-base19 (0.11.26)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby_core_source (>= 0.1.4)
- ruby-debug19 (0.11.6)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby-debug-base19 (>= 0.11.19)
ruby-gmail (0.2.1)
mail (>= 2.2.1)
shared-mime-info
ruby-rc4 (0.1.5)
- ruby_core_source (0.1.5)
- archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.6.1)
sass (3.1.15)
selenium-webdriver (2.20.0)
@@ -315,6 +304,7 @@ DEPENDENCIES
capistrano
capybara
capybara-webkit
+ chef_cap
coffee-script
csv-mapper
database_cleaner
@@ -354,7 +344,6 @@ DEPENDENCIES
rb-inotify
rmagick
rspec-rails
- ruby-debug19
ruby-gmail
sass
selenium-webdriver
View
24 Vagrantfile
@@ -0,0 +1,24 @@
+# vi: set ft=ruby :
+
+BOX_NAME = :bnetv
+
+Vagrant::Config.run do |config|
+ config.vm.box = "precise32"
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
+
+ config.vm.define BOX_NAME do |box_config|
+ box_config.vm.customize ["modifyvm", :id, "--name", BOX_NAME.to_s.capitalize]
+ box_config.vm.host_name = BOX_NAME.to_s.capitalize
+ box_config.vm.network :hostonly, "192.168.33.12"
+ box_config.vm.forward_port 3000, 3001
+ box_config.vm.forward_port 8989, 8989
+ box_config.vm.customize ["modifyvm", :id, "--memory", 750]
+ box_config.vm.provision :shell do |shell|
+ shell.path = "~/util/base_util/bin/bootstrap_base"
+ shell.args = "vagrant --proceed"
+ end
+ box_config.vm.share_folder "puppet", "/puppet", "/home/aleak/data/puppet"
+ box_config.vm.share_folder "apt", "/apt", "/home/aleak/data/apt"
+ end
+
+end
View
8 config/deploy/production.rb
@@ -0,0 +1,8 @@
+server 'fj1', :app, :web, :primary => true
+server 'kana', :app, :web
+server 'fils', :app, :web
+
+desc "This is a production only task"
+task :zzz do
+ run "uptime"
+end
View
17 config/deploy/shared/.gitignore
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
29 config/deploy/shared/base/base.rb
@@ -0,0 +1,29 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ set :scm, :git
+ set :appdir, application
+ set :deploy_via, :remote_cache
+ set :deploy_to, "/home/#{user}/a/#{application}"
+ set :use_sudo, false
+
+ default_run_options[:pty] = true
+ ssh_options[:forward_agent] = true
+
+ after "deploy", "deploy:cleanup" # keep only the last 5 releases
+
+ # ---------------------------------------------------------------------------------
+ # see http://henriksjokvist.net/archive/2012/2/deploying-with-rbenv-and-capistrano/
+ require "bundler/capistrano"
+ set :bundle_flags, "--deployment --quiet --binstubs --shebang ruby-local-exec"
+
+ # also see http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/
+
+
+ # ---------------------------------------------------------------------------------
+ # get sudo password at the beginning of the run
+ task :sudo_setup, :roles => :app do
+ run "#{sudo} date"
+ end
+ before "deploy", "sudo_setup"
+
+end
View
17 config/deploy/shared/base/colors.rb
@@ -0,0 +1,17 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ # see https://github.com/stjernstrom/capistrano_colors
+
+ require 'capistrano_colors'
+
+ capistrano_color_matchers = [
+ { :match => /command finished/, :color => :hide, :prio => 10 },
+ { :match => /servers:/, :color => :hide, :prio => 10 },
+ { :match => /^transaction: commit$/, :color => :magenta, :prio => 10 },
+ { :match => /executing command/, :color => :cyan, :prio => 10, :attribute => :dim },
+ { :match => /git/, :color => :white, :prio => 20, :attribute => :reverse },
+ ]
+
+ colorize( capistrano_color_matchers )
+
+end
View
46 config/deploy/shared/base/ghost.rb
@@ -0,0 +1,46 @@
+=begin
+
+This sets up /etc/hosts for development.
+It is designed for using / testing a staging environment.
+
+If using 'multistage', put these lines into the
+config file for the staging environment.
+
+ after "deploy", "ghost:remote"
+ after "deploy", "ghost:local"
+
+These recipes assume that the staging VM is using
+bridged networking. If using host-only networking,
+replace the 'proxy' setting with the fixed-ip address.
+
+Note: on Ubuntu if the commands don't work with sudo,
+try adding these lines to /etc/sudoers:
+
+ Defaults env_reset
+ Defaults exempt_group=admin
+
+=end
+
+Capistrano::Configuration.instance(:must_exist).load do
+
+ namespace :ghost do
+
+ desc "Update /etc/hosts on remote machines using ghost"
+ task :remote do
+ vhost_names.each do |name|
+ run "cd #{deploy_to}/current ; #{sudo} -E ghost modify #{name} 127.0.0.1"
+ end
+ run "cd #{deploy_to}/current ; #{sudo} -E ghost modify #{app_name} 127.0.0.1"
+ end
+
+ desc "Update /etc/hosts on #{`hostname`.chomp} using ghost"
+ task :local do
+ vhost_names.each do |name|
+ system "#{sudo} -E ghost modify #{name} #{proxy}"
+ end
+ system "#{sudo} -E ghost modify #{app_name} #{proxy}"
+ end
+
+ end
+
+end
View
27 config/deploy/shared/base/helpers.rb
@@ -0,0 +1,27 @@
+require 'erb'
+
+def render(from)
+ erb = File.read(File.expand_path("../packages/templates/#{from}", File.dirname(__FILE__)))
+ ERB.new(erb).result(binding)
+end
+
+def sudo_template(from, to)
+ put render(from), "/tmp/_filetransfer"
+ run "#{sudo} mv /tmp/_filetransfer #{to}"
+end
+
+def template(from, to)
+ put render(from), to
+end
+
+def set_default(name, *args, &block)
+ set(name, *args, &block) unless exists?(name)
+end
+
+def get_host
+ capture("echo $CAPISTRANO:HOST$").strip
+end
+
+def remote_file_exists?(full_path)
+ 'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
+end
View
30 config/deploy/shared/packages/foreman.rb
@@ -0,0 +1,30 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ after 'deploy:update', 'foreman:export'
+ after 'deploy:update', 'foreman:restart'
+
+ namespace :foreman do
+ desc "Export the Procfile to Ubuntu's upstart scripts"
+ task :export, :roles => :app do
+ run "#{sudo} rm -f /etc/init/#{app_name}*.conf"
+ run "cd #{release_path} && foreman export upstart /tmp/xinit -p #{web_port} -a #{app_name} -u #{user} -l #{shared_path}/log"
+ run "#{sudo} mv /tmp/xinit/* /etc/init"
+ run "rm -rf /tmp/xinit"
+ end
+ desc "Start the application services"
+ task :start, :roles => :app do
+ run "#{sudo} start #{app_name}"
+ end
+
+ desc "Stop the application services"
+ task :stop, :roles => :app do
+ run "#{sudo} stop #{app_name}"
+ end
+
+ desc "Restart the application services"
+ task :restart, :roles => :app do
+ run "#{sudo} start #{app_name} || #{sudo} restart #{app_name}"
+ end
+ end
+
+end
View
20 config/deploy/shared/packages/nginx.rb
@@ -0,0 +1,20 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ after "deploy:update", "nginx:export_conf"
+
+ namespace :nginx do
+
+ desc "Export an nginx config file."
+ task :export_conf, :role => :web do
+ template "nginx_passenger.erb", "/etc/nginx/conf.d/#{app_name}.conf"
+ end
+
+ %w[start stop status restart reload].each do |command|
+ desc "#{command} nginx"
+ task command, roles: :web do
+ run "#{sudo} /etc/init.d/nginx #{command}"
+ end
+ end
+ end
+
+end
View
9 config/deploy/shared/packages/nodejs.rb
@@ -0,0 +1,9 @@
+namespace :nodejs do
+ desc "Install the latest relase of Node.js"
+ task :install, roles: :app do
+ run "#{sudo} add-apt-repository ppa:chris-lea/node.js"
+ run "#{sudo} apt-get -y update"
+ run "#{sudo} apt-get -y install nodejs"
+ end
+ after "deploy:install", "nodejs:install"
+end
View
26 config/deploy/shared/packages/passenger.rb
@@ -0,0 +1,26 @@
+set_default(:passenger_user) { user }
+set_default(:passenger_pid) { "#{current_path}/tmp/pids/passenger.pid" }
+set_default(:passenger_config) { "#{shared_path}/config/passenger.rb" }
+set_default(:passenger_log) { "#{shared_path}/log/passenger.log" }
+set_default(:passenger_workers, 2)
+
+namespace :passenger do
+ desc "Setup Passenger initializer and app configuration"
+ task :setup, roles: :app do
+ run "mkdir -p #{shared_path}/config"
+ template "passenger.rb.erb", passenger_config
+ template "passenger_init.erb", "/tmp/passenger_init"
+ run "chmod +x /tmp/passenger_init"
+ run "#{sudo} mv /tmp/passenger_init /etc/init.d/passenger_#{application}"
+ run "#{sudo} update-rc.d -f passenger_#{application} defaults"
+ end
+ after "deploy:setup", "passenger:setup"
+
+ %w[start stop restart].each do |command|
+ desc "#{command} passenger"
+ task command, roles: :app do
+ run "service passenger_#{application} #{command}"
+ end
+ after "deploy:#{command}", "passenger:#{command}"
+ end
+end
View
34 config/deploy/shared/packages/postgresql.rb
@@ -0,0 +1,34 @@
+set_default(:postgresql_host, "localhost")
+set_default(:postgresql_user) { application }
+set_default(:postgresql_password) { Capistrano::CLI.password_prompt "PostgreSQL Password: " }
+set_default(:postgresql_database) { "#{application}_production" }
+
+namespace :postgresql do
+ desc "Install the latest stable release of PostgreSQL."
+ task :install, roles: :db, only: {primary: true} do
+ run "#{sudo} add-apt-repository ppa:pitti/postgresql"
+ run "#{sudo} apt-get -y update"
+ run "#{sudo} apt-get -y install postgresql libpq-dev"
+ end
+ after "deploy:install", "postgresql:install"
+
+ desc "Create a database for this application."
+ task :create_database, roles: :db, only: {primary: true} do
+ run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"}
+ run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"}
+ end
+ after "deploy:setup", "postgresql:create_database"
+
+ desc "Generate the database.yml configuration file."
+ task :setup, roles: :app do
+ run "mkdir -p #{shared_path}/config"
+ template "postgresql.yml.erb", "#{shared_path}/config/database.yml"
+ end
+ after "deploy:setup", "postgresql:setup"
+
+ desc "Symlink the database.yml file into latest release"
+ task :symlink, roles: :app do
+ run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
+ end
+ after "deploy:finalize_update", "postgresql:symlink"
+end
View
27 config/deploy/shared/packages/rbenv.rb
@@ -0,0 +1,27 @@
+set_default :ruby_version, "1.9.3-p125"
+set_default :rbenv_bootstrap, "bootstrap-ubuntu-10-04"
+
+namespace :rbenv do
+ desc "Install rbenv, Ruby, and the Bundler gem"
+ task :install, roles: :app do
+ run "#{sudo} apt-get -y install curl git-core"
+ run "curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash"
+ bashrc = <<-BASHRC
+if [ -d $HOME/.rbenv ]; then
+ export PATH="$HOME/.rbenv/bin:$PATH"
+ eval "$(rbenv init -)"
+fi
+BASHRC
+ put bashrc, "/tmp/rbenvrc"
+ run "cat /tmp/rbenvrc ~/.bashrc > ~/.bashrc.tmp"
+ run "mv ~/.bashrc.tmp ~/.bashrc"
+ run %q{export PATH="$HOME/.rbenv/bin:$PATH"}
+ run %q{eval "$(rbenv init -)"}
+ run "rbenv #{rbenv_bootstrap}"
+ run "rbenv install #{ruby_version}"
+ run "rbenv global #{ruby_version}"
+ run "gem install bundler --no-ri --no-rdoc"
+ run "rbenv rehash"
+ end
+ after "deploy:install", "rbenv:install"
+end
View
22 config/deploy/shared/packages/sqlite.rb
@@ -0,0 +1,22 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ after 'deploy:setup', 'sqlite:make_shared_db'
+ after 'deploy:update', 'sqlite:link_shared_db'
+
+ namespace :sqlite do
+
+ desc "Make a shared database folder"
+ task :make_shared_db, :roles => :db do
+ run "mkdir -p #{shared_path}/db"
+ upload "db/development.sqlite3", "#{shared_path}/db/production.sqlite3"
+ end
+
+ desc "Link shared database"
+ task :link_shared_db, :roles => :db do
+ run "rm -f #{release_path}/db/production.sqlite3"
+ run "ln -s #{shared_path}/db/production.sqlite3 #{release_path}/db/production.sqlite3"
+ end
+
+ end
+
+end
View
9 config/deploy/shared/packages/templates/nginx_passenger.erb
@@ -0,0 +1,9 @@
+server {
+ listen 80;
+ server_name <%= vhost_names.join(' ') %>;
+ root <%= deploy_to %>/current/public;
+ location / {
+ proxy_pass http://127.0.0.1:<%= web_port %>;
+ proxy_set_header Host $host;
+ }
+}
View
27 config/deploy/shared/packages/templates/nginx_unicorn.erb
@@ -0,0 +1,27 @@
+upstream unicorn {
+ server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
+}
+
+server {
+ listen 80 default deferred;
+ # server_name example.com;
+ root <%= current_path %>/public;
+
+ location ^~ /assets/ {
+ gzip_static on;
+ expires max;
+ add_header Cache-Control public;
+ }
+
+ try_files $uri/index.html $uri @unicorn;
+ location @unicorn {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_redirect off;
+ proxy_pass http://unicorn;
+ }
+
+ error_page 500 502 503 504 /500.html;
+ client_max_body_size 4G;
+ keepalive_timeout 10;
+}
View
8 config/deploy/shared/packages/templates/postgresql.yml.erb
@@ -0,0 +1,8 @@
+production:
+ adapter: postgresql
+ encoding: unicode
+ database: <%= postgresql_database %>
+ pool: 5
+ username: <%= postgresql_user %>
+ password: <%= postgresql_password %>
+ host: <%= postgresql_host %>
View
8 config/deploy/shared/packages/templates/unicorn.rb.erb
@@ -0,0 +1,8 @@
+working_directory "<%= current_path %>"
+pid "<%= unicorn_pid %>"
+stderr_path "<%= unicorn_log %>"
+stdout_path "<%= unicorn_log %>"
+
+listen "/tmp/unicorn.<%= application %>.sock"
+worker_processes <%= unicorn_workers %>
+timeout 30
View
84 config/deploy/shared/packages/templates/unicorn_init.erb
@@ -0,0 +1,84 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: unicorn
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Manage unicorn server
+# Description: Start, stop, restart unicorn server for a specific application.
+### END INIT INFO
+set -e
+
+# Feel free to change any of the following variables for your app:
+TIMEOUT=${TIMEOUT-60}
+APP_ROOT=<%= current_path %>
+PID=<%= unicorn_pid %>
+CMD="cd <%= current_path %>; bundle exec unicorn -D -c <%= unicorn_config %> -E production"
+AS_USER=<%= unicorn_user %>
+set -u
+
+OLD_PIN="$PID.oldbin"
+
+sig () {
+ test -s "$PID" && kill -$1 `cat $PID`
+}
+
+oldsig () {
+ test -s $OLD_PIN && kill -$1 `cat $OLD_PIN`
+}
+
+run () {
+ if [ "$(id -un)" = "$AS_USER" ]; then
+ eval $1
+ else
+ su -c "$1" - $AS_USER
+ fi
+}
+
+case "$1" in
+start)
+ sig 0 && echo >&2 "Already running" && exit 0
+ run "$CMD"
+ ;;
+stop)
+ sig QUIT && exit 0
+ echo >&2 "Not running"
+ ;;
+force-stop)
+ sig TERM && exit 0
+ echo >&2 "Not running"
+ ;;
+restart|reload)
+ sig HUP && echo reloaded OK && exit 0
+ echo >&2 "Couldn't reload, starting '$CMD' instead"
+ run "$CMD"
+ ;;
+upgrade)
+ if sig USR2 && sleep 2 && sig 0 && oldsig QUIT
+ then
+ n=$TIMEOUT
+ while test -s $OLD_PIN && test $n -ge 0
+ do
+ printf '.' && sleep 1 && n=$(( $n - 1 ))
+ done
+ echo
+
+ if test $n -lt 0 && test -s $OLD_PIN
+ then
+ echo >&2 "$OLD_PIN still exists after $TIMEOUT seconds"
+ exit 1
+ fi
+ exit 0
+ fi
+ echo >&2 "Couldn't upgrade, starting '$CMD' instead"
+ run "$CMD"
+ ;;
+reopen-logs)
+ sig USR1
+ ;;
+*)
+ echo >&2 "Usage: $0 <start|stop|restart|upgrade|force-stop|reopen-logs>"
+ exit 1
+ ;;
+esac
View
26 config/deploy/shared/packages/unicorn.rb
@@ -0,0 +1,26 @@
+set_default(:unicorn_user) { user }
+set_default(:unicorn_pid) { "#{current_path}/tmp/pids/unicorn.pid" }
+set_default(:unicorn_config) { "#{shared_path}/config/unicorn.rb" }
+set_default(:unicorn_log) { "#{shared_path}/log/unicorn.log" }
+set_default(:unicorn_workers, 2)
+
+namespace :unicorn do
+ desc "Setup Unicorn initializer and app configuration"
+ task :setup, roles: :app do
+ run "mkdir -p #{shared_path}/config"
+ template "unicorn.rb.erb", unicorn_config
+ template "unicorn_init.erb", "/tmp/unicorn_init"
+ run "chmod +x /tmp/unicorn_init"
+ run "#{sudo} mv /tmp/unicorn_init /etc/init.d/unicorn_#{application}"
+ run "#{sudo} update-rc.d -f unicorn_#{application} defaults"
+ end
+ after "deploy:setup", "unicorn:setup"
+
+ %w[start stop restart].each do |command|
+ desc "#{command} unicorn"
+ task command, roles: :app do
+ run "service unicorn_#{application} #{command}"
+ end
+ after "deploy:#{command}", "unicorn:#{command}"
+ end
+end
View
29 config/deploy/shared/recipes/app.rb
@@ -0,0 +1,29 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ # namespace for App Tasks
+ namespace :at do
+
+ desc "Setup and run initial deploy"
+ task :setup do
+ deploy.setup
+ deploy.cold
+ end
+
+ desc "Deploy the application"
+ task :dep do
+ deploy
+ end
+
+ desc "Roll back the application"
+ task :rback do
+ deploy.rollback
+ end
+
+ desc "Run the App Console"
+ task :console do
+ system "ssh -t #{proxy} tmux_console #{current_path}/script/tmpro"
+ end
+
+ end
+
+end
View
63 config/deploy/shared/recipes/depext.rb
@@ -0,0 +1,63 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ namespace :depxt do
+
+ desc "RUN THIS FIRST!"
+ task :first_deploy do
+ check_for_passenger
+ current_host = get_host
+ run "mkdir -p /home/aleak/a"
+ run "mkdir -p /home/aleak/a/_conf"
+ run "gem install rspec"
+ deploy.setup
+ run "mkdir -p #{shared_path}/db"
+ run "mkdir -p #{shared_path}/data"
+ system "/home/aleak/util/bin/vhost add #{current_host}"
+ puts "READY TO RUN on #{current_host}"
+ end
+
+ #after :deploy, :update_gems, :setup_shared_cache, :setup_primary, :setup_backup
+ #after "deploy:symlink", :reset_cron, :link_shared
+ #after :nginx_conf, :restart_nginx
+
+ desc "Reset Cron"
+ task :reset_cron do
+ #run "cd #{release_path} && bundle exec whenever --update-crontab #{application}"
+ end
+
+ desc "Setup shared cache."
+ task :setup_shared_cache do
+ cache_dir = "#{shared_path}/cache"
+ vendor_dir = "#{release_path}/vendor"
+ run "mkdir -p #{cache_dir} #{vendor_dir}"
+ run "ln -s #{cache_dir} #{vendor_dir}/cache"
+ run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
+ end
+
+ def remote_file_exists?(full_path)
+ 'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
+ end
+
+ desc "Link shared assets."
+ task :link_shared do
+ db_file = "production.sqlite3"
+ unless remote_file_exists?("#{shared_path}/db/#{db_file}")
+ puts " creating DB file ".center(80, '-')
+ run "mkdir -p #{shared_path}/db"
+ run "cp #{release_path}/db/database.sqlite3 #{shared_path}/db/#{db_file}"
+ end
+ unless remote_file_exists?("#{shared_path}/data/settings.yaml")
+ puts " creating settings file ".center(80, '-')
+ run "mkdir -p #{shared_path}/data"
+ run "cp -r #{release_path}/data/shared/* #{shared_path}/data"
+ end
+ run "rm -f #{release_path}/db/#{db_file}"
+ run "ln -s #{shared_path}/db/#{db_file} #{release_path}/db/#{db_file}"
+ run "mv #{release_path}/data/shared #{release_path}/data/shared_save"
+ run "ln -s #{shared_path}/data #{release_path}/data/shared"
+ run "touch #{release_path}/tmp/restart.txt"
+ end
+
+ end
+
+end
View
24 config/deploy/shared/recipes/deploy.rb
@@ -0,0 +1,24 @@
+Capistrano::Configuration.instance(:must_exist).load do
+
+ namespace :deploy do
+
+ desc "Start #{application}"
+ task :start do
+ run "echo Starting application"
+ end
+
+ desc "Stop #{application}"
+ task :start do
+ run "echo Stopping application"
+ end
+
+ desc "Restart #{application}"
+ task :restart do
+ run "echo Restarting application"
+ run "mkdir -p #{current_path}/tmp"
+ run "touch #{current_path}/tmp/restart.txt"
+ end
+
+ end
+
+end
View
17 config/deploy/shared/sync
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+# Syncs this gem directory to a shared copy using unison
+# For development of a shared gem amount multiple apps
+
+cur_path = File.expand_path(File.dirname(__FILE__))
+tgt_path = File.expand_path("~/lr/cap_share")
+
+abort "Can't run from #{tgt_path}" if cur_path == tgt_path
+
+cmd = "unison #{cur_path} #{tgt_path} -terse -auto -batch -fastcheck true -ignore 'Path .git'"
+
+system "sudo rm -rf .git" if Dir.exist?(".git")
+
+puts cmd
+system cmd
+
View
6 config/deploy/staging.rb
@@ -0,0 +1,6 @@
+server proxy, :app, :web, :db, :primary => true
+
+# setup vhost names in /etc/hosts
+after "deploy", "ghost:remote"
+after "deploy", "ghost:local"
+
Please sign in to comment.
Something went wrong with that request. Please try again.