Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial rails3 changes

  • Loading branch information...
commit 9a304142da79d253b6587e00ddf947baf65fe9f1 1 parent c45931a
@wr0ngway wr0ngway authored
View
2  Rakefile
@@ -18,7 +18,7 @@ begin
s.add_dependency 'aws-s3'
s.add_dependency 'nettica'
s.add_dependency 'zerigo_dns'
- s.add_dependency 'rails'
+ s.add_dependency 'railties', '3.0.0.beta2'
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
2  VERSION
@@ -1 +1 @@
-1.3.0
+2.0.0.rails3
View
6 generators/vulcanize/USAGE
@@ -1,6 +0,0 @@
-Description:
- Prepares the rails application for deploying with rubber by installing a
- sample rubber configuration template
-
-Examples:
- ./script/generate vulcanize minimal_mysql
View
67 generators/vulcanize/vulcanize_generator.rb
@@ -1,67 +0,0 @@
-require 'fileutils'
-require 'find'
-
-class VulcanizeGenerator < Rails::Generator::NamedBase
-
- TEMPLATE_ROOT = File.expand_path("../../lib/generators/vulcanize/templates", __FILE__)
- TEMPLATE_FILE = "templates.yml"
-
- def manifest
- record do |m|
- templates = [file_name] + actions
- templates.each do |t|
- apply_template(m, t)
- end
- end
- end
-
- def apply_template(m, name)
- sp = source_path("#{name}/")
- unless File.directory?(sp)
- raise Rails::Generator::UsageError.new("Invalid template #{name}, use one of #{valid_templates.join(', ')}")
- end
-
- templ_conf = load_template_config(sp)
- deps = templ_conf['dependent_templates'] || []
- deps.each do |dep|
- apply_template(m, dep)
- end
-
- Find.find(sp) do |f|
- Find.prune if File.basename(f) =~ /^(CVS|\.svn)$/
- Find.prune if f == "#{sp}#{TEMPLATE_FILE}"
-
- rel = f.gsub(/#{source_root}\//, '')
- dest_rel = rel.gsub(/^#{name}\//, '')
- m.directory(dest_rel) if File.directory?(f)
- if File.file?(f)
- # force scripts to be executable
- opts = (File.read(f) =~ /^#!/) ? {:chmod => 0755} : {}
- m.file(rel, dest_rel, opts)
- end
-
- end
- end
-
- protected
- def valid_templates
- valid = Dir.entries(TEMPLATE_ROOT).delete_if {|e| e =~ /(^\.)|svn|CVS/ }
- end
-
- def load_template_config(template_dir)
- templ_file = "#{template_dir}/templates.yml"
- templ_conf = YAML.load(File.read(templ_file)) rescue {}
- return templ_conf
- end
-
- def banner
- usage = "Usage: #{$0} vulcanize template_name ...\n"
- usage << "where template_name is one of:\n\n"
- valid_templates.each do |t|
- templ_conf = load_template_config("#{TEMPLATE_ROOT}/#{t}")
- desc = templ_conf['description']
- usage << " #{t}: #{desc}\n"
- end
- return usage
- end
-end
View
1  init.rb
@@ -1 +0,0 @@
-require File.dirname(__FILE__) + "/rails/init"
View
19 lib/generators/vulcanize/templates/base/Rakefile
@@ -0,0 +1,19 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'development')
+RAILS_ENV = ENV['RAILS_ENV'] = env
+root = File.dirname(__FILE__)
+
+require 'rubber'
+
+Rubber::initialize(root, env)
+
+require 'rubber/tasks/rubber'
+
+task :console do
+ ARGV.clear
+ require "irb"
+ IRB.start
+end
View
14 lib/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb
@@ -16,8 +16,6 @@
env = ENV["RUBBER_ENV"] ||= "development"
root = File.join(File.dirname(__FILE__), '../..')
Rubber::initialize(root, env)
-RUBBER_CONFIG = Rubber::Configuration.rubber_env
-RUBBER_INSTANCES = Rubber::Configuration.rubber_instances
# Print config info need by munin for generating graphs
if ARGV[0] == "config"
@@ -38,15 +36,15 @@
EOF
# pick a non-critical db if possible
-source = RUBBER_INSTANCES.for_role("mysql_util").first
-source ||= RUBBER_INSTANCES.for_role("mysql_slave").first
-source ||= RUBBER_INSTANCES.for_role("mysql_master").first
+source = Rubber.instances.for_role("mysql_util").first
+source ||= Rubber.instances.for_role("mysql_slave").first
+source ||= Rubber.instances.for_role("mysql_master").first
db_host = source ? source.full_name : 'localhost'
-command = "mysql -u #{RUBBER_CONFIG.db_slave_user}"
-command << " --password=#{RUBBER_CONFIG.db_pass}"
+command = "mysql -u #{Rubber.config.db_slave_user}"
+command << " --password=#{Rubber.config.db_pass}"
command << " -h #{db_host}"
-command << " #{RUBBER_CONFIG.db_name} --skip-column-names"
+command << " #{Rubber.config.db_name} --skip-column-names"
# execute a sql query to get some data
data = `echo "#{query}" | #{command}`
View
74 lib/generators/vulcanize/vulcanize_generator.rb
@@ -11,41 +11,55 @@ def copy_template_files
apply_template(file_name)
end
- protected
+ protected
- def apply_template(name)
- template_dir = File.join(self.class.source_root, name, '')
- unless File.directory?(template_dir)
- raise Rails::Generators::Error.new("Invalid template #{name}, use one of #{valid_templates.join(', ')}")
- end
+ # helper to test for rails for optional templates
+ def rails?
+ is_rails = false
+ if defined?(Rails.root)
+ rails_boot_file = File.join(Rails.root, 'config', 'boot.rb')
+ is_rails = File.exists?(rails_boot_file)
+ end
+ return is_rails
+ end
+
+ def apply_template(name)
+ template_dir = File.join(self.class.source_root, name, '')
+ unless File.directory?(template_dir)
+ raise Rails::Generators::Error.new("Invalid template #{name}, use one of #{valid_templates.join(', ')}")
+ end
- template_conf = load_template_config(template_dir)
- deps = template_conf['dependent_templates'] || []
- deps.each do |dep|
- apply_template(dep)
- end
+ template_conf = load_template_config(template_dir)
+ deps = template_conf['dependent_templates'] || []
+ deps.each do |dep|
+ apply_template(dep)
+ end
+
+ Find.find(template_dir) do |f|
+ Find.prune if f == File.join(template_dir, 'templates.yml') # don't copy over templates.yml
- Find.find(template_dir) do |f|
- Find.prune if f == File.join(template_dir, 'templates.yml') # don't copy over templates.yml
+ template_rel = f.gsub(/#{template_dir}/, '')
+ source_rel = f.gsub(/#{self.class.source_root}\//, '')
+ dest_rel = source_rel.gsub(/^#{name}\//, '')
- source_rel = f.gsub(/#{self.class.source_root}\//, '')
- dest_rel = source_rel.gsub(/^#{name}\//, '')
- if File.directory?(f)
- empty_directory(dest_rel)
- else
- copy_file(source_rel, dest_rel)
- end
+ # Only include optional files when their conditions eval to true
+ optional = template_conf['optional'][template_rel] rescue nil
+ Find.prune if optional && ! eval(optional)
+
+ if File.directory?(f)
+ empty_directory(dest_rel)
+ else
+ copy_file(source_rel, dest_rel)
end
-# source_rel = File.join(template_dir.gsub(/#{self.class.source_root}\//, ''), 'config')
-# dest_rel = source_rel.gsub(/^#{name}\//, '')
-# directory(source_rel, dest_rel)
end
+ end
+
+ def valid_templates
+ valid = Dir.entries(self.class.source_root).delete_if {|e| e =~ /(^\.)|svn|CVS/ }
+ end
+
+ def load_template_config(template_dir)
+ YAML.load(File.read(File.join(template_dir, 'templates.yml'))) rescue {}
+ end
- def valid_templates
- valid = Dir.entries(self.class.source_root).delete_if {|e| e =~ /(^\.)|svn|CVS/ }
- end
-
- def load_template_config(template_dir)
- YAML.load(File.read(File.join(template_dir, 'templates.yml'))) rescue {}
- end
end
View
40 lib/rubber.rb
@@ -7,6 +7,8 @@ module Rubber
def self.initialize(project_root, project_env)
return if defined?(RUBBER_ROOT) && defined?(RUBBER_ENV)
+ @@root = project_root
+ @@env = project_env
Object.const_set('RUBBER_ENV', project_env)
Object.const_set('RUBBER_ROOT', File.expand_path(project_root))
@@ -17,15 +19,39 @@ def self.initialize(project_root, project_env)
rails_boot_file = File.join(RUBBER_ROOT, 'config', 'boot.rb')
require(rails_boot_file) if File.exists? rails_boot_file
- if defined?(RAILS_DEFAULT_LOGGER) && RAILS_DEFAULT_LOGGER
- Object.const_set('LOGGER', RAILS_DEFAULT_LOGGER)
+ if defined?(Rails.logger) && Rails.logger
+ @@logger = Rails.logger
else
- Object.const_set('LOGGER', Logger.new($stdout))
- LOGGER.level = Logger::INFO
- LOGGER.formatter = lambda {|severity, time, progname, msg| "Rubber[%s]: %s\n" % [severity, msg.to_s.lstrip]}
+ @@logger = Logger.new($stdout)
+ @@logger.level = Logger::INFO
+ @@logger.formatter = lambda {|severity, time, progname, msg| "Rubber[%s]: %s\n" % [severity, msg.to_s.lstrip]}
end
+
+ # conveniences for backwards compatibility with old names
+ Object.const_set('RUBBER_CONFIG', self.config)
+ Object.const_set('RUBBER_INSTANCES', self.instances)
+
+ end
+
+ def self.root
+ @@root
+ end
+
+ def self.env
+ @@env
+ end
+
+ def self.logger
+ @@logger
+ end
+
+ def self.config
+ Rubber::Configuration.rubber_env
end
+ def self.instances
+ Rubber::Configuration.rubber_instances
+ end
end
@@ -36,3 +62,7 @@ def self.initialize(project_root, project_env)
require 'rubber/util'
require 'rubber/cloud'
require 'rubber/dns'
+
+module Rubber
+ require 'rubber/railtie' if defined?(Rails)
+end
View
2  lib/rubber/environment.rb
@@ -22,7 +22,7 @@ def initialize(config_root)
end
def read_config(file)
- LOGGER.debug{"Reading rubber configuration from #{file}"}
+ Rubber.logger.debug{"Reading rubber configuration from #{file}"}
if File.exist?(file)
@items = Environment.combine(@items, YAML.load_file(file) || {})
end
View
16 lib/rubber/generator.rb
@@ -33,13 +33,13 @@ def run
Dir[dir].sort.each do |f|
next if f =~ /\/(CVS|\.svn)\//
if File.file?(f) && (! pat || pat.match(f))
- LOGGER.info{"Transforming #{f}"}
+ Rubber.logger.info{"Transforming #{f}"}
begin
transform(IO.read(f), @options)
rescue Exception => e
lines = e.backtrace.grep(/^\(erb\):([0-9]+)/) {|b| Regexp.last_match(1) }
- LOGGER.error{"Transformation failed for #{f}#{':' + lines.first if lines.first}"}
- LOGGER.error e.message
+ Rubber.logger.error{"Transformation failed for #{f}#{':' + lines.first if lines.first}"}
+ Rubber.logger.error e.message
exit 1
end
end
@@ -131,22 +131,22 @@ def open(*args)
# Run post transform command if needed
if config.post
if fake_root
- LOGGER.info("Not running post command as a fake root was given: #{config.post}")
+ Rubber.logger.info("Not running post command as a fake root was given: #{config.post}")
elsif no_post
- LOGGER.info("Not running post command as no post specified")
+ Rubber.logger.info("Not running post command as no post specified")
else
if orig != result || force
# this lets us abort a script if a command in the middle of it errors out
# stop_on_error_cmd = "function error_exit { exit 99; }; trap error_exit ERR"
config.post = "#{stop_on_error_cmd}\n#{config.post}" if stop_on_error_cmd
- LOGGER.info{"Transformation executing post config command: #{config.post}"}
- LOGGER.info `#{config.post}`
+ Rubber.logger.info{"Transformation executing post config command: #{config.post}"}
+ Rubber.logger.info `#{config.post}`
if $?.exitstatus != 0
raise "Post command failed execution: #{config.post}"
end
else
- LOGGER.info("Nothing to do, not running post command")
+ Rubber.logger.info("Nothing to do, not running post command")
end
end
end
View
2  lib/rubber/instance.rb
@@ -10,7 +10,7 @@ class Instance
include Enumerable
def initialize(file)
- LOGGER.debug{"Reading rubber instances from #{file}"}
+ Rubber.logger.debug{"Reading rubber instances from #{file}"}
@file = file
@items = {}
@artifacts = {'volumes' => {}, 'static_ips' => {}}
View
14 lib/rubber/railtie.rb
@@ -0,0 +1,14 @@
+require 'rubber'
+require 'rails'
+
+module Rubber
+
+ class Railtie < Rails::Railtie
+
+ initializer "rubber.configure_rails_initialization" do
+ Rubber::initialize(Rails.root, Rails.env)
+ end
+
+ end
+
+end
View
5 rails/init.rb
@@ -3,7 +3,4 @@
#
require "rubber"
-Rubber::initialize(RAILS_ROOT, RAILS_ENV)
-
-::RUBBER_CONFIG = Rubber::Configuration.rubber_env
-::RUBBER_INSTANCES = Rubber::Configuration.rubber_instances
+Rubber::initialize(Rails.root, Rails.env)
View
309 rubber.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{rubber}
- s.version = "1.3.0"
+ s.version = "2.0.0.rails3"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Matt Conway"]
- s.date = %q{2010-04-05}
+ s.date = %q{2010-04-08}
s.default_executable = %q{vulcanize}
s.description = %q{The rubber plugin enables relatively complex multi-instance deployments of RubyOnRails applications to Amazon's Elastic Compute Cloud (EC2). Like capistrano, rubber is role based, so you can define a set of configuration files for a role and then assign that role to as many concrete instances as needed. One can also assign multiple roles to a single instance. This lets one start out with a single ec2 instance (belonging to all roles), and add new instances into the mix as needed to scale specific facets of your deployment, e.g. adding in instances that serve only as an 'app' role to handle increased app server load.}
s.email = %q{matt@conwaysplace.com}
@@ -25,153 +25,154 @@ Gem::Specification.new do |s|
"TODO",
"VERSION",
"bin/vulcanize",
- "generators/vulcanize/USAGE",
- "generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf",
- "generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth",
- "generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html",
- "generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml",
- "generators/vulcanize/templates/apache/templates.yml",
- "generators/vulcanize/templates/base/Capfile",
- "generators/vulcanize/templates/base/config/deploy.rb",
- "generators/vulcanize/templates/base/config/rubber/common/crontab",
- "generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf",
- "generators/vulcanize/templates/base/config/rubber/common/rubber.profile",
- "generators/vulcanize/templates/base/config/rubber/deploy-setup.rb",
- "generators/vulcanize/templates/base/config/rubber/rubber-dns.yml",
- "generators/vulcanize/templates/base/config/rubber/rubber.yml",
- "generators/vulcanize/templates/base/lib/tasks/rubber.rake",
- "generators/vulcanize/templates/base/script/cron-rake",
- "generators/vulcanize/templates/base/script/cron-runner",
- "generators/vulcanize/templates/base/script/cron-sh",
- "generators/vulcanize/templates/base/templates.yml",
- "generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf",
- "generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf",
- "generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml",
- "generators/vulcanize/templates/complete_mongrel_mysql/templates.yml",
- "generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf",
- "generators/vulcanize/templates/complete_passenger_mysql/config/rubber/rubber-complete.yml",
- "generators/vulcanize/templates/complete_passenger_mysql/templates.yml",
- "generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb",
- "generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise",
- "generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf",
- "generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb",
- "generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb",
- "generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf",
- "generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml",
- "generators/vulcanize/templates/cruise/templates.yml",
- "generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb",
- "generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf",
- "generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml",
- "generators/vulcanize/templates/haproxy/templates.yml",
- "generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb",
- "generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh",
- "generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml",
- "generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf",
- "generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml",
- "generators/vulcanize/templates/jetty/templates.yml",
- "generators/vulcanize/templates/memcached/config/memcached.yml",
- "generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml",
- "generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf",
- "generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin",
- "generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml",
- "generators/vulcanize/templates/memcached/templates.yml",
- "generators/vulcanize/templates/minimal_mysql/templates.yml",
- "generators/vulcanize/templates/minimal_nodb/templates.yml",
- "generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb",
- "generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml",
- "generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf",
- "generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml",
- "generators/vulcanize/templates/mongrel/templates.yml",
- "generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf",
- "generators/vulcanize/templates/monit/config/rubber/common/monit.conf",
- "generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb",
- "generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf",
- "generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml",
- "generators/vulcanize/templates/monit/templates.yml",
- "generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf",
- "generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf",
- "generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf",
- "generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb",
- "generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf",
- "generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf",
- "generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf",
- "generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml",
- "generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb",
- "generators/vulcanize/templates/munin/script/munin/example_simple.rb",
- "generators/vulcanize/templates/munin/templates.yml",
- "generators/vulcanize/templates/mysql/config/rubber/common/database.yml",
- "generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb",
- "generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf",
- "generators/vulcanize/templates/mysql/config/rubber/role/db/crontab",
- "generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf",
- "generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf",
- "generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin",
- "generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml",
- "generators/vulcanize/templates/mysql/templates.yml",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf",
- "generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml",
- "generators/vulcanize/templates/mysql_cluster/templates.yml",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb",
- "generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml",
- "generators/vulcanize/templates/mysql_proxy/templates.yml",
- "generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb",
- "generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab",
- "generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf",
- "generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf",
- "generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf",
- "generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html",
- "generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth",
- "generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml",
- "generators/vulcanize/templates/nginx/templates.yml",
- "generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb",
- "generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf",
- "generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf",
- "generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf",
- "generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf",
- "generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf",
- "generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml",
- "generators/vulcanize/templates/passenger/templates.yml",
- "generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb",
- "generators/vulcanize/templates/redis/config/rubber/role/redis/crontab",
- "generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf",
- "generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf",
- "generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml",
- "generators/vulcanize/templates/redis/templates.yml",
- "generators/vulcanize/templates/resque/config/rubber/deploy-resque-worker-default.rb",
- "generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb",
- "generators/vulcanize/templates/resque/config/rubber/role/resque_worker_default/monit-resque_worker_default.conf",
- "generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml",
- "generators/vulcanize/templates/resque/templates.yml",
- "generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml",
- "generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb",
- "generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab",
- "generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf",
- "generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml",
- "generators/vulcanize/templates/sphinx/templates.yml",
- "generators/vulcanize/vulcanize_generator.rb",
"lib/capistrano/hostcmd.rb",
+ "lib/generators/vulcanize/USAGE",
+ "lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth",
+ "lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html",
+ "lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml",
+ "lib/generators/vulcanize/templates/apache/templates.yml",
+ "lib/generators/vulcanize/templates/base/Capfile",
+ "lib/generators/vulcanize/templates/base/Rakefile",
+ "lib/generators/vulcanize/templates/base/config/deploy.rb",
+ "lib/generators/vulcanize/templates/base/config/rubber/common/crontab",
+ "lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf",
+ "lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile",
+ "lib/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb",
+ "lib/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml",
+ "lib/generators/vulcanize/templates/base/config/rubber/rubber.yml",
+ "lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake",
+ "lib/generators/vulcanize/templates/base/script/cron-rake",
+ "lib/generators/vulcanize/templates/base/script/cron-runner",
+ "lib/generators/vulcanize/templates/base/script/cron-sh",
+ "lib/generators/vulcanize/templates/base/templates.yml",
+ "lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf",
+ "lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf",
+ "lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml",
+ "lib/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml",
+ "lib/generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf",
+ "lib/generators/vulcanize/templates/complete_passenger_mysql/config/rubber/rubber-complete.yml",
+ "lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf",
+ "lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml",
+ "lib/generators/vulcanize/templates/cruise/templates.yml",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf",
+ "lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml",
+ "lib/generators/vulcanize/templates/haproxy/templates.yml",
+ "lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb",
+ "lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh",
+ "lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml",
+ "lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf",
+ "lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml",
+ "lib/generators/vulcanize/templates/jetty/templates.yml",
+ "lib/generators/vulcanize/templates/memcached/config/memcached.yml",
+ "lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml",
+ "lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf",
+ "lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin",
+ "lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml",
+ "lib/generators/vulcanize/templates/memcached/templates.yml",
+ "lib/generators/vulcanize/templates/minimal_mysql/templates.yml",
+ "lib/generators/vulcanize/templates/minimal_nodb/templates.yml",
+ "lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb",
+ "lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml",
+ "lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf",
+ "lib/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml",
+ "lib/generators/vulcanize/templates/mongrel/templates.yml",
+ "lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf",
+ "lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf",
+ "lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb",
+ "lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf",
+ "lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml",
+ "lib/generators/vulcanize/templates/monit/templates.yml",
+ "lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb",
+ "lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf",
+ "lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml",
+ "lib/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb",
+ "lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb",
+ "lib/generators/vulcanize/templates/munin/templates.yml",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin",
+ "lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml",
+ "lib/generators/vulcanize/templates/mysql/templates.yml",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf",
+ "lib/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml",
+ "lib/generators/vulcanize/templates/mysql_cluster/templates.yml",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb",
+ "lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml",
+ "lib/generators/vulcanize/templates/mysql_proxy/templates.yml",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth",
+ "lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml",
+ "lib/generators/vulcanize/templates/nginx/templates.yml",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf",
+ "lib/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml",
+ "lib/generators/vulcanize/templates/passenger/templates.yml",
+ "lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb",
+ "lib/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab",
+ "lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf",
+ "lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf",
+ "lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml",
+ "lib/generators/vulcanize/templates/redis/templates.yml",
+ "lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque-worker-default.rb",
+ "lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb",
+ "lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker_default/monit-resque_worker_default.conf",
+ "lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml",
+ "lib/generators/vulcanize/templates/resque/templates.yml",
+ "lib/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml",
+ "lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb",
+ "lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab",
+ "lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf",
+ "lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml",
+ "lib/generators/vulcanize/templates/sphinx/templates.yml",
+ "lib/generators/vulcanize/vulcanize_generator.rb",
"lib/rubber.rb",
"lib/rubber/capistrano.rb",
"lib/rubber/cloud.rb",
@@ -186,6 +187,7 @@ Gem::Specification.new do |s|
"lib/rubber/environment.rb",
"lib/rubber/generator.rb",
"lib/rubber/instance.rb",
+ "lib/rubber/railtie.rb",
"lib/rubber/recipes/rubber.rb",
"lib/rubber/recipes/rubber/bundles.rb",
"lib/rubber/recipes/rubber/deploy.rb",
@@ -226,16 +228,14 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<aws-s3>, [">= 0"])
s.add_runtime_dependency(%q<nettica>, [">= 0"])
s.add_runtime_dependency(%q<zerigo_dns>, [">= 0"])
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
- s.add_runtime_dependency(%q<rails>, [">= 0"])
+ s.add_runtime_dependency(%q<railties>, ["= 3.0.0.beta2"])
else
s.add_dependency(%q<capistrano>, [">= 2.4.0"])
s.add_dependency(%q<amazon-ec2>, [">= 0.9.0"])
s.add_dependency(%q<aws-s3>, [">= 0"])
s.add_dependency(%q<nettica>, [">= 0"])
s.add_dependency(%q<zerigo_dns>, [">= 0"])
- s.add_dependency(%q<httparty>, [">= 0"])
- s.add_dependency(%q<rails>, [">= 0"])
+ s.add_dependency(%q<railties>, ["= 3.0.0.beta2"])
end
else
s.add_dependency(%q<capistrano>, [">= 2.4.0"])
@@ -243,8 +243,7 @@ Gem::Specification.new do |s|
s.add_dependency(%q<aws-s3>, [">= 0"])
s.add_dependency(%q<nettica>, [">= 0"])
s.add_dependency(%q<zerigo_dns>, [">= 0"])
- s.add_dependency(%q<httparty>, [">= 0"])
- s.add_dependency(%q<rails>, [">= 0"])
+ s.add_dependency(%q<railties>, ["= 3.0.0.beta2"])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.