Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix template paths, fix Gemfile appending

  • Loading branch information...
commit ea77de30e70a4700c750061e60ffa72d77572610 1 parent 5002e92
@wr0ngway authored
Showing with 9 additions and 6 deletions.
  1. +3 −3 bin/rubber
  2. 0  {lib/generators/vulcanize → }/templates/base/config/rubber/common/rsyslog.conf
  3. +5 −2 templates/base/templates.rb
  4. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/deploy-collectd.rb
  5. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/collectd/collectd.conf
  6. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/collectd/filters.conf
  7. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/collectd/thresholds.conf
  8. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/collectd/types.db
  9. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/passenger/collectd-passenger.conf
  10. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/passenger/collectd-passenger.rb.conf
  11. 0  ...generators/vulcanize → }/templates/collectd/config/rubber/role/passenger/passenger-status-sudoers.conf
  12. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/role/postgresql/collectd-postgresql.conf
  13. 0  ...ulcanize → }/templates/collectd/config/rubber/role/postgresql_slave/collectd-postgresql-threshold.conf
  14. 0  {lib/generators/vulcanize → }/templates/collectd/config/rubber/rubber-collectd.yml
  15. 0  {lib/generators/vulcanize → }/templates/collectd/script/collectd/collectd-runner.rb
  16. 0  {lib/generators/vulcanize → }/templates/collectd/script/collectd/role/examples/example_db_query.rb
  17. 0  {lib/generators/vulcanize → }/templates/collectd/script/collectd/role/examples/example_simple.rb
  18. 0  ...enerators/vulcanize → }/templates/collectd/script/collectd/role/postgresql_slave/replication_status.rb
  19. 0  {lib/generators/vulcanize → }/templates/collectd/script/collectd/role/redis/redis_info.rb
  20. 0  .../generators/vulcanize → }/templates/collectd/script/collectd/role/resque_worker/global_worker_stats.rb
  21. 0  {lib/generators/vulcanize → }/templates/collectd/script/collectd/role/resque_worker/host_worker_stats.rb
  22. 0  ...enerators/vulcanize → }/templates/collectd/script/collectd/role/resque_worker/resque_jobs_processed.rb
  23. 0  {lib/generators/vulcanize → }/templates/collectd/templates.yml
  24. 0  ...ors/vulcanize → }/templates/complete_passenger_nginx/config/rubber/role/haproxy/haproxy-passenger.conf
  25. 0  {lib/generators/vulcanize → }/templates/complete_passenger_nginx/config/rubber/rubber-complete.yml
  26. 0  {lib/generators/vulcanize → }/templates/complete_passenger_nginx/templates.rb
  27. 0  {lib/generators/vulcanize → }/templates/complete_passenger_nginx/templates.yml
  28. 0  {lib/generators/vulcanize → }/templates/complete_passenger_nginx_mysql/templates.yml
  29. 0  {lib/generators/vulcanize → }/templates/complete_passenger_nginx_postgresql/templates.yml
  30. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/deploy-graphite.rb
  31. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/collectd/graphite-collectd.conf
  32. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_server/carbon.conf
  33. 0  ...rators/vulcanize → }/templates/graphite/config/rubber/role/graphite_server/graphite-collectd-ping.conf
  34. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_server/storage-schemas.conf
  35. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_web/crontab
  36. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_web/dashboard.conf
  37. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_web/graphite-vhost.conf
  38. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_web/graphite.wsgi
  39. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/role/graphite_web/local_settings.py
  40. 0  {lib/generators/vulcanize → }/templates/graphite/config/rubber/rubber-graphite.yml
  41. 0  {lib/generators/vulcanize → }/templates/graphite/templates.yml
  42. 0  {lib/generators/vulcanize → }/templates/minimal_passenger_nginx/config/rubber/rubber-complete.yml
  43. 0  {lib/generators/vulcanize → }/templates/minimal_passenger_nginx/templates.yml
  44. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/deploy-passenger_nginx.rb
  45. 0  ...generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
  46. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/crontab
  47. 0  ...generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/monit-nginx.conf
  48. 0  ...vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-memory.conf
  49. 0  ...ulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-sudoers.conf
  50. 0  ...rators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger.conf
  51. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx
  52. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf
  53. 0  ...rators/vulcanize → }/templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
  54. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/web_tools/nginx-tools.conf
  55. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/web_tools/tools-index.html
  56. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/role/web_tools/tools-nginx.auth
  57. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/config/rubber/rubber-passenger_nginx.yml
  58. 0  {lib/generators/vulcanize → }/templates/passenger_nginx/templates.yml
  59. 0  {lib/generators/vulcanize → }/templates/postgresql/config/rubber/role/postgresql_slave/recovery.conf
  60. +1 −1  templates/resque/templates.rb
View
6 bin/rubber
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
-
env = ENV['RUBBER_ENV'] ||= 'development'
root = '.'
-
-if File.exists?("Gemfile")
+# Only load gemfile if there and contains rubber in order
+# to allow vulcanize to work in bootstrap case
+if File.exists?("Gemfile") && File.read("Gemfile").lines.grep(/gem.*["']rubber["']/).size > 0
require "bundler"
Bundler.setup(:default, env.to_sym)
end
View
0  .../templates/base/config/rubber/common/rsyslog.conf → templates/base/config/rubber/common/rsyslog.conf
File renamed without changes
View
7 templates/base/templates.rb
@@ -1,7 +1,10 @@
if Rubber::Util::is_bundler?
- gem "rubber", Rubber.version if ! Rubber::Util::rubber_as_plugin?
+ if ! Rubber::Util::rubber_as_plugin?
+ append_to_file "Gemfile", "gem 'rubber', '#{Rubber.version}'\n"
+ end
+
# for cron-sh
- gem "open4"
+ append_to_file 'Gemfile', "gem 'open4'\n"
end
if Rubber::Util::is_rails2?
View
0  ...mplates/collectd/config/rubber/deploy-collectd.rb → templates/collectd/config/rubber/deploy-collectd.rb
File renamed without changes
View
0  ...ollectd/config/rubber/role/collectd/collectd.conf → ...ollectd/config/rubber/role/collectd/collectd.conf
File renamed without changes
View
0  ...collectd/config/rubber/role/collectd/filters.conf → ...collectd/config/rubber/role/collectd/filters.conf
File renamed without changes
View
0  ...lectd/config/rubber/role/collectd/thresholds.conf → ...lectd/config/rubber/role/collectd/thresholds.conf
File renamed without changes
View
0  ...tes/collectd/config/rubber/role/collectd/types.db → ...tes/collectd/config/rubber/role/collectd/types.db
File renamed without changes
View
0  ...fig/rubber/role/passenger/collectd-passenger.conf → ...fig/rubber/role/passenger/collectd-passenger.conf
File renamed without changes
View
0  .../rubber/role/passenger/collectd-passenger.rb.conf → .../rubber/role/passenger/collectd-passenger.rb.conf
File renamed without changes
View
0  ...bber/role/passenger/passenger-status-sudoers.conf → ...bber/role/passenger/passenger-status-sudoers.conf
File renamed without changes
View
0  ...g/rubber/role/postgresql/collectd-postgresql.conf → ...g/rubber/role/postgresql/collectd-postgresql.conf
File renamed without changes
View
0  ...stgresql_slave/collectd-postgresql-threshold.conf → ...stgresql_slave/collectd-postgresql-threshold.conf
File renamed without changes
View
0  ...plates/collectd/config/rubber/rubber-collectd.yml → templates/collectd/config/rubber/rubber-collectd.yml
File renamed without changes
View
0  ...lates/collectd/script/collectd/collectd-runner.rb → ...lates/collectd/script/collectd/collectd-runner.rb
File renamed without changes
View
0  ...script/collectd/role/examples/example_db_query.rb → ...script/collectd/role/examples/example_db_query.rb
File renamed without changes
View
0  ...d/script/collectd/role/examples/example_simple.rb → ...d/script/collectd/role/examples/example_simple.rb
File renamed without changes
View
0  ...lectd/role/postgresql_slave/replication_status.rb → ...lectd/role/postgresql_slave/replication_status.rb
File renamed without changes
View
0  ...collectd/script/collectd/role/redis/redis_info.rb → ...collectd/script/collectd/role/redis/redis_info.rb
File renamed without changes
View
0  ...ollectd/role/resque_worker/global_worker_stats.rb → ...ollectd/role/resque_worker/global_worker_stats.rb
File renamed without changes
View
0  .../collectd/role/resque_worker/host_worker_stats.rb → .../collectd/role/resque_worker/host_worker_stats.rb
File renamed without changes
View
0  ...lectd/role/resque_worker/resque_jobs_processed.rb → ...lectd/role/resque_worker/resque_jobs_processed.rb
File renamed without changes
View
0  ...rators/vulcanize/templates/collectd/templates.yml → templates/collectd/templates.yml
File renamed without changes
View
0  ...config/rubber/role/haproxy/haproxy-passenger.conf → ...config/rubber/role/haproxy/haproxy-passenger.conf
File renamed without changes
View
0  ...passenger_nginx/config/rubber/rubber-complete.yml → ...passenger_nginx/config/rubber/rubber-complete.yml
File renamed without changes
View
0  ...e/templates/complete_passenger_nginx/templates.rb → templates/complete_passenger_nginx/templates.rb
File renamed without changes
View
0  .../templates/complete_passenger_nginx/templates.yml → templates/complete_passenger_nginx/templates.yml
File renamed without changes
View
0  ...ates/complete_passenger_nginx_mysql/templates.yml → ...ates/complete_passenger_nginx_mysql/templates.yml
File renamed without changes
View
0  ...complete_passenger_nginx_postgresql/templates.yml → ...complete_passenger_nginx_postgresql/templates.yml
File renamed without changes
View
0  ...mplates/graphite/config/rubber/deploy-graphite.rb → templates/graphite/config/rubber/deploy-graphite.rb
File renamed without changes
View
0  ...onfig/rubber/role/collectd/graphite-collectd.conf → ...onfig/rubber/role/collectd/graphite-collectd.conf
File renamed without changes
View
0  ...te/config/rubber/role/graphite_server/carbon.conf → ...te/config/rubber/role/graphite_server/carbon.conf
File renamed without changes
View
0  .../role/graphite_server/graphite-collectd-ping.conf → .../role/graphite_server/graphite-collectd-ping.conf
File renamed without changes
View
0  .../rubber/role/graphite_server/storage-schemas.conf → .../rubber/role/graphite_server/storage-schemas.conf
File renamed without changes
View
0  .../graphite/config/rubber/role/graphite_web/crontab → .../graphite/config/rubber/role/graphite_web/crontab
File renamed without changes
View
0  ...te/config/rubber/role/graphite_web/dashboard.conf → ...te/config/rubber/role/graphite_web/dashboard.conf
File renamed without changes
View
0  ...nfig/rubber/role/graphite_web/graphite-vhost.conf → ...nfig/rubber/role/graphite_web/graphite-vhost.conf
File renamed without changes
View
0  ...ite/config/rubber/role/graphite_web/graphite.wsgi → ...ite/config/rubber/role/graphite_web/graphite.wsgi
File renamed without changes
View
0  ...config/rubber/role/graphite_web/local_settings.py → ...config/rubber/role/graphite_web/local_settings.py
File renamed without changes
View
0  ...plates/graphite/config/rubber/rubber-graphite.yml → templates/graphite/config/rubber/rubber-graphite.yml
File renamed without changes
View
0  ...rators/vulcanize/templates/graphite/templates.yml → templates/graphite/templates.yml
File renamed without changes
View
0  ...passenger_nginx/config/rubber/rubber-complete.yml → ...passenger_nginx/config/rubber/rubber-complete.yml
File renamed without changes
View
0  ...e/templates/minimal_passenger_nginx/templates.yml → templates/minimal_passenger_nginx/templates.yml
File renamed without changes
View
0  ...ger_nginx/config/rubber/deploy-passenger_nginx.rb → ...ger_nginx/config/rubber/deploy-passenger_nginx.rb
File renamed without changes
View
0  ...nfig/rubber/role/passenger_nginx/application.conf → ...nfig/rubber/role/passenger_nginx/application.conf
File renamed without changes
View
0  ..._nginx/config/rubber/role/passenger_nginx/crontab → ..._nginx/config/rubber/role/passenger_nginx/crontab
File renamed without changes
View
0  ...nfig/rubber/role/passenger_nginx/monit-nginx.conf → ...nfig/rubber/role/passenger_nginx/monit-nginx.conf
File renamed without changes
View
0  .../role/passenger_nginx/munin-passenger-memory.conf → .../role/passenger_nginx/munin-passenger-memory.conf
File renamed without changes
View
0  ...role/passenger_nginx/munin-passenger-sudoers.conf → ...role/passenger_nginx/munin-passenger-sudoers.conf
File renamed without changes
View
0  .../rubber/role/passenger_nginx/munin-passenger.conf → .../rubber/role/passenger_nginx/munin-passenger.conf
File renamed without changes
View
0  ...er_nginx/config/rubber/role/passenger_nginx/nginx → ...er_nginx/config/rubber/role/passenger_nginx/nginx
File renamed without changes
View
0  ...inx/config/rubber/role/passenger_nginx/nginx.conf → ...inx/config/rubber/role/passenger_nginx/nginx.conf
File renamed without changes
View
0  .../rubber/role/passenger_nginx/passenger_nginx.conf → .../rubber/role/passenger_nginx/passenger_nginx.conf
File renamed without changes
View
0  ...inx/config/rubber/role/web_tools/nginx-tools.conf → ...inx/config/rubber/role/web_tools/nginx-tools.conf
File renamed without changes
View
0  ...inx/config/rubber/role/web_tools/tools-index.html → ...inx/config/rubber/role/web_tools/tools-index.html
File renamed without changes
View
0  ...inx/config/rubber/role/web_tools/tools-nginx.auth → ...inx/config/rubber/role/web_tools/tools-nginx.auth
File renamed without changes
View
0  ...er_nginx/config/rubber/rubber-passenger_nginx.yml → ...er_nginx/config/rubber/rubber-passenger_nginx.yml
File renamed without changes
View
0  ...vulcanize/templates/passenger_nginx/templates.yml → templates/passenger_nginx/templates.yml
File renamed without changes
View
0  ...config/rubber/role/postgresql_slave/recovery.conf → ...config/rubber/role/postgresql_slave/recovery.conf
File renamed without changes
View
2  templates/resque/templates.rb
@@ -1 +1 @@
-gem "resque" if Rubber::Util::is_bundler?
+append_to_file 'Gemfile', "gem 'resque'\n" if Rubber::Util::is_bundler?
Please sign in to comment.
Something went wrong with that request. Please try again.