Sha256: 8fd36cc4e56a3c5fd9ed71d887de0e080295c73c5e7792aadf25f6c42921636f
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
module Initial class CapistranoGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add gem_group :development do gem 'capistrano' gem 'capistrano-rbenv' gem 'capistrano-bundler' gem 'capistrano-rails' gem 'capistrano-sidekiq' , github: 'seuros/capistrano-sidekiq' gem 'capistrano3-puma' end Bundler.with_clean_env do run "bundle install" end directory 'capistrano/tasks', 'lib/capistrano/tasks' directory 'capistrano/shared', 'config/deploy/shared' run 'cap install' uncomment_lines 'Capfile', /require 'capistrano\/rbenv'/ uncomment_lines 'Capfile', /require 'capistrano\/bundler'/ uncomment_lines 'Capfile', /require 'capistrano\/rails\/assets'/ uncomment_lines 'Capfile', /require 'capistrano\/rails\/migrations'/ insert_into_file "Capfile", "require 'capistrano/sidekiq'\n", after: "require 'capistrano/rails/migrations'\n" insert_into_file "Capfile", "require 'capistrano/sidekiq'\n", after: "require 'capistrano/puma'\n" insert_into_file "Capfile", "require 'capistrano/sidekiq'\n", after: "require 'capistrano/puma/monit'\n" copy_file 'capistrano/deploy/deploy.rb', 'config/deploy.rb' copy_file 'capistrano/deploy/production.rb', 'config/deploy/production.rb' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.16 | lib/generators/initial/capistrano.rb |