Apply PercentLiteralDelimiters rubocop rule
This commit is contained in:
@@ -21,8 +21,8 @@ set :log_level, :info
|
||||
set :pty, true
|
||||
set :use_sudo, false
|
||||
|
||||
set :linked_files, %w{config/database.yml config/secrets.yml config/unicorn.rb config/environments/production.rb}
|
||||
set :linked_dirs, %w{log tmp public/system public/assets public/ckeditor_assets}
|
||||
set :linked_files, %w[config/database.yml config/secrets.yml config/unicorn.rb config/environments/production.rb]
|
||||
set :linked_dirs, %w[log tmp public/system public/assets public/ckeditor_assets]
|
||||
|
||||
set :keep_releases, 5
|
||||
|
||||
@@ -31,12 +31,12 @@ set :local_user, ENV["USER"]
|
||||
set :delayed_job_workers, 2
|
||||
set :delayed_job_roles, :background
|
||||
|
||||
set(:config_files, %w(
|
||||
set(:config_files, %w[
|
||||
log_rotation
|
||||
database.yml
|
||||
secrets.yml
|
||||
unicorn.rb
|
||||
))
|
||||
])
|
||||
|
||||
set :whenever_roles, -> { :app }
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ set :ssh_options, port: deploysecret(:ssh_port)
|
||||
set :stage, :preproduction
|
||||
set :rails_env, :preproduction
|
||||
|
||||
server deploysecret(:server1), user: deploysecret(:user), roles: %w(web app db importer cron background)
|
||||
server deploysecret(:server2), user: deploysecret(:user), roles: %w(web app db importer)
|
||||
server deploysecret(:server1), user: deploysecret(:user), roles: %w[web app db importer cron background]
|
||||
server deploysecret(:server2), user: deploysecret(:user), roles: %w[web app db importer]
|
||||
|
||||
@@ -6,7 +6,7 @@ set :ssh_options, port: deploysecret(:ssh_port)
|
||||
set :stage, :production
|
||||
set :rails_env, :production
|
||||
|
||||
server deploysecret(:server1), user: deploysecret(:user), roles: %w(web app db importer cron background)
|
||||
server deploysecret(:server1), user: deploysecret(:user), roles: %w[web app db importer cron background]
|
||||
#server deploysecret(:server2), user: deploysecret(:user), roles: %w(web app db importer cron background)
|
||||
#server deploysecret(:server3), user: deploysecret(:user), roles: %w(web app db importer)
|
||||
#server deploysecret(:server4), user: deploysecret(:user), roles: %w(web app db importer)
|
||||
|
||||
@@ -6,4 +6,4 @@ set :ssh_options, port: deploysecret(:ssh_port)
|
||||
set :stage, :staging
|
||||
set :rails_env, :staging
|
||||
|
||||
server deploysecret(:server), user: deploysecret(:user), roles: %w(web app db importer cron)
|
||||
server deploysecret(:server), user: deploysecret(:user), roles: %w[web app db importer cron]
|
||||
|
||||
@@ -9,12 +9,12 @@ Rails.application.config.assets.version = "1.0"
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w( search.js )
|
||||
Rails.application.config.assets.precompile += %w( ckeditor/config.js )
|
||||
Rails.application.config.assets.precompile += %w( ie_lt9.js )
|
||||
Rails.application.config.assets.precompile += %w( stat_graphs.js )
|
||||
Rails.application.config.assets.precompile += %w( dashboard_graphs.js )
|
||||
Rails.application.config.assets.precompile += %w( print.css )
|
||||
Rails.application.config.assets.precompile += %w( ie.css )
|
||||
Rails.application.config.assets.precompile += %w( pdf_fonts.css )
|
||||
Rails.application.config.assets.precompile += %w[ckeditor/config.js]
|
||||
Rails.application.config.assets.precompile += %w[ie_lt9.js]
|
||||
Rails.application.config.assets.precompile += %w[stat_graphs.js]
|
||||
Rails.application.config.assets.precompile += %w[dashboard_graphs.js]
|
||||
Rails.application.config.assets.precompile += %w[print.css]
|
||||
Rails.application.config.assets.precompile += %w[ie.css]
|
||||
Rails.application.config.assets.precompile += %w[pdf_fonts.css]
|
||||
|
||||
# Loads custom images and custom fonts before app/assets/images and app/assets/fonts
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
SocialShareButton.configure do |config|
|
||||
config.allow_sites = %w(twitter facebook google_plus telegram)
|
||||
config.allow_sites = %w[twitter facebook google_plus telegram]
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%w(
|
||||
%w[
|
||||
.ruby-version
|
||||
.rbenv-vars
|
||||
tmp/restart.txt
|
||||
tmp/caching-dev.txt
|
||||
).each { |path| Spring.watch(path) }
|
||||
].each { |path| Spring.watch(path) }
|
||||
|
||||
Reference in New Issue
Block a user