5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/generators/initial/capistrano.rb', line 5
def add
gem_group :development do
gem 'capistrano'
gem 'capistrano-rbenv'
gem 'capistrano-bundler'
gem 'capistrano-rails'
gem 'capistrano-sidekiq' , github: 'seuros/capistrano-sidekiq'
end
run "bundle install"
directory 'capistrano/tasks', 'lib/capistrano/tasks'
directory 'capistrano/shared', 'config/deploy/shared'
files = %w(substitute_strings.rb template.rb)
files.each do |f|
template "capistrano/lib/#{f}", "lib/capistrano/#{f}"
end
end
|