Sha256: 1bd8a29e6b994b8ea03aceecab1dc8c10efaca3f83c51f5c5dc353878a0efb3c
Contents?: true
Size: 771 Bytes
Versions: 8
Compression:
Stored size: 771 Bytes
Contents
class DeployerGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) argument :user, :type => "string", :default => "deploy" def generate_nginx_conf_file @application = file_name @user = user template "nginx.conf.erb", "config/nginx.conf" end def generate_unicorn_rb_file @application = file_name @user = user template "unicorn.rb.erb", "config/unicorn.rb" end def generate_unicorn_init_sh_file @application = file_name @user = user template "unicorn_init.sh.erb", "config/unicorn_init.sh" chmod "config/unicorn_init.sh", 0700 end def generate_capistrano capify! @application = file_name @user = user template "deploy.rb", "config/deploy.rb" end end
Version data entries
8 entries across 8 versions & 1 rubygems