Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fix a bunch of whitespace issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenb committed Aug 2, 2016
1 parent ed8e547 commit 1549951
Show file tree
Hide file tree
Showing 56 changed files with 61 additions and 70 deletions.
2 changes: 1 addition & 1 deletion asset-manager/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
1 change: 0 additions & 1 deletion backdrop-write/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
load "python"

namespace :deploy do

task :upload_environment_settings do
config_folder = File.expand_path("secrets/settings/#{ENV['ORGANISATION']}", Dir.pwd)
if File.exist?(config_folder)
Expand Down
2 changes: 1 addition & 1 deletion bouncer/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion bouncer/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
after "deploy:symlink", "deploy:sync_legacy_assets"


task :notify_errbit, :only => {:primary => true} do
task :notify_errbit, :only => { :primary => true } do
run "cd #{current_release} && #{rake} errbit:deploy REVISION=#{current_revision} TO=#{ENV['ORGANISATION']} REPO='#{repository}' USER=#{user}", :once => true
end
after "deploy:notify", "notify_errbit"
2 changes: 1 addition & 1 deletion business-support-api/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion calculators/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion calendars/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion calendars/config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set :application, "calendars"
set :capfile_dir, File.expand_path('../', File.dirname(__FILE__))
set :server_class, "calculators_frontend"
set :server_class, "calculators_frontend"

load 'defaults'
load 'ruby'
Expand Down
2 changes: 1 addition & 1 deletion collections/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion contacts/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
4 changes: 2 additions & 2 deletions contacts/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
set :assets_prefix, 'contacts-assets'

set :server_class, {
frontend: {roles: [:frontend, :web, :app]},
backend: {roles: [:backend, :db, :web, :app]},
frontend: { roles: [:frontend, :web, :app] },
backend: { roles: [:backend, :db, :web, :app] },
}

require "whenever/capistrano"
Expand Down
2 changes: 1 addition & 1 deletion content-store/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion designprinciples/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion email-alert-api/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion email-campaign-api/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion email-campaign-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion errbit/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
1 change: 0 additions & 1 deletion event-store/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
load 'defaults'

namespace :deploy do

# This overrides the default update_code task
desc "Copies the CI build artefact to the remote servers."
task :update_code, :except => { :no_release => true } do
Expand Down
2 changes: 1 addition & 1 deletion feedback/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion finder-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
4 changes: 2 additions & 2 deletions frontend/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
end
end
end
task :upload_private_initializers, :only => {:server_class => "backend"} do
task :upload_private_initializers, :only => { :server_class => "backend" } do
config_folder = File.expand_path("secrets/to_upload/private_initializers/#{rails_env}", Dir.pwd)
if File.exist?(config_folder)
Dir.glob(File.join(config_folder, "*.rb")).each do |initializer|
top.upload(initializer, File.join(release_path, "config/initializers/#{File.basename(initializer)}"))
end
end
end
task :upload_unicorn_config, :only => {:server_class => "frontend"} do
task :upload_unicorn_config, :only => { :server_class => "frontend" } do
config_file = File.expand_path("secrets/to_upload/unicorn.rb", Dir.pwd)
if File.exist?(config_file)
top.upload(config_file, File.join(release_path, "config/unicorn.rb"))
Expand Down
2 changes: 1 addition & 1 deletion government-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion hmrc-manuals-api/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion imminence/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion info-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion licencefinder/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
4 changes: 2 additions & 2 deletions licencefinder/config/deploy.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set :application, "licencefinder"
set :capfile_dir, File.expand_path('../', File.dirname(__FILE__))
set :server_class, "calculators_frontend"
set :server_class, "calculators_frontend"
set :repo_name, "licence-finder"

load 'defaults'
Expand All @@ -9,7 +9,7 @@

set :assets_prefix, "licencefinder"
set :rails_env, 'production'
set :bundle_without, [:development, :test, :webkit]
set :bundle_without, [:development, :test, :webkit]

set :copy_exclude, [
'.git/*',
Expand Down
2 changes: 1 addition & 1 deletion local-links-manager/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion manuals-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion multipage-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion panopticon/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
1 change: 0 additions & 1 deletion performanceplatform-admin/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
load "python"

namespace :deploy do

task :compile_scss do
run_python_command('tools/compile_sass.py')
end
Expand Down
2 changes: 1 addition & 1 deletion publisher/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
14 changes: 7 additions & 7 deletions recipes/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,47 +124,47 @@
end
end

task :errbit, :only => {:primary => true} do
task :errbit, :only => { :primary => true } do
run "cd #{current_release} && #{rake} airbrake:deploy REVISION=#{current_revision} TO=#{organisation} REPO='#{repository}' USER=#{user}", :once => true
end

task :github, :only => {:primary => true} do
task :github, :only => { :primary => true } do
run_locally "cd #{strategy.local_cache_path}; git push -f #{repository} HEAD:refs/heads/deployed-to-#{ENV['ORGANISATION']}"
end
end

namespace :panopticon do
task :register, :only => {:primary => true, :draft => false} do
task :register, :only => { :primary => true, :draft => false } do
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake)
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} panopticon:register", :once => true
end
end

namespace :publishing_api do
task :publish, :only => {:primary => true, :draft => false} do
task :publish, :only => { :primary => true, :draft => false } do
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake)
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} publishing_api:publish", :once => true
end

task :publish_special_routes, :only => {:primary => true, :draft => false} do
task :publish_special_routes, :only => { :primary => true, :draft => false } do
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake)
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} publishing_api:publish_special_routes", :once => true
end
end

namespace :email do
task :register_subscriptions, :only => {:primary => true} do
task :register_subscriptions, :only => { :primary => true } do
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake)
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} email_subscriptions:register_subscriptions", :once => true
end
end

namespace :rummager do
task :index, :only => {:primary => true} do
task :index, :only => { :primary => true } do
rails_env = fetch(:rails_env, "production")
rake = fetch(:rake)
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} rummager:index", :once => true
Expand Down
1 change: 0 additions & 1 deletion recipes/govuk_admin_template.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

namespace :govuk_admin_template do

task :configure do
case ENV['ORGANISATION']
when "production"
Expand Down
1 change: 0 additions & 1 deletion recipes/nodejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
top.upload(f, File.join(release_path, File.basename(f)))
end
end

end

before "deploy:finalize_update", "deploy:install_deps"
Expand Down
1 change: 0 additions & 1 deletion recipes/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
task :upgrade_pip do
run "cd #{release_path} && #{shared_path}/venv/bin/pip install --upgrade pip==7.1.0"
end

end

after "deploy:setup", "deploy:create_virtualenv"
Expand Down
6 changes: 3 additions & 3 deletions recipes/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"PATH" => "/usr/lib/rbenv/shims:$PATH"
}

set :bundle_cmd, 'bundle'
set :bundle_cmd, 'bundle'
set(:source_db_config_file, 'secrets/to_upload/database.yml') unless fetch(:source_db_config_file, false)
set(:db_config_file, 'config/database.yml') unless fetch(:db_config_file, false)
set(:rack_env, :production)
Expand Down Expand Up @@ -72,11 +72,11 @@
run "ln -sf /etc/govuk/actionmailer_ses_smtp_config.rb #{release_path}/config/initializers/mailer.rb"
end

task :create_mongoid_indexes, :only => {:primary => true} do
task :create_mongoid_indexes, :only => { :primary => true } do
run "cd #{current_release}; #{rake} db:mongoid:create_indexes"
end

task :seed_db, :only => {:primary => true} do
task :seed_db, :only => { :primary => true } do
rails_env = fetch(:rails_env, "production")
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} db:seed"
end
Expand Down
4 changes: 1 addition & 3 deletions recipes/set_servers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
namespace :deploy do

# deploy:set_servers
#
# This uses the 'server_class' cap parameter, if set, to determine the
Expand All @@ -16,7 +15,7 @@
next
end

DEFAULT_CONFIG = {roles: [:web, :app, :db]}.freeze
DEFAULT_CONFIG = { roles: [:web, :app, :db] }.freeze

classes = if cls.respond_to? :join
# Array of strings or symbols, e.g
Expand Down Expand Up @@ -61,7 +60,6 @@
logger.info "set_servers: deploying to #{c} => #{nodes_to_deploy.join(', ')}"
end
end

end

on :start, 'deploy:set_servers'
2 changes: 1 addition & 1 deletion recommended-links/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
2 changes: 1 addition & 1 deletion recommended-links/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
]

namespace :deploy do
task :restart, :roles => :app, :except => {:no_release => true} do
task :restart, :roles => :app, :except => { :no_release => true } do
end

namespace :rummager do
Expand Down
1 change: 0 additions & 1 deletion router/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
load 'defaults'

namespace :deploy do

# This overrides the default update_code task
desc "Copies the CI build artefact to the remote servers."
task :update_code, :except => { :no_release => true } do
Expand Down
2 changes: 1 addition & 1 deletion service-manual-frontend/Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ load 'deploy'
$:.unshift(File.expand_path('../../lib', __FILE__))
load_paths << File.expand_path('../../recipes', __FILE__)

load 'config/deploy'
load 'config/deploy'
Loading

0 comments on commit 1549951

Please sign in to comment.