diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2014-06-20 19:56:29 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2014-06-20 19:56:29 +0200 |
commit | 5058ef3e041e9e1b8ed1c5cf74b0441cf5d3c9cd (patch) | |
tree | 8669a50e0e91b7adb08f7b165e707b9e1045360e /config/deploy/secret_token.rb | |
parent | 84de1a7117742463138c188a4d2c9e2b2e814fef (diff) | |
download | hmnoweb-5058ef3e041e9e1b8ed1c5cf74b0441cf5d3c9cd.tar.gz hmnoweb-5058ef3e041e9e1b8ed1c5cf74b0441cf5d3c9cd.tar.bz2 hmnoweb-5058ef3e041e9e1b8ed1c5cf74b0441cf5d3c9cd.zip |
Remove old capistrano config.
Diffstat (limited to 'config/deploy/secret_token.rb')
-rw-r--r-- | config/deploy/secret_token.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/config/deploy/secret_token.rb b/config/deploy/secret_token.rb deleted file mode 100644 index dc2e19a..0000000 --- a/config/deploy/secret_token.rb +++ /dev/null @@ -1,36 +0,0 @@ -unless Capistrano::Configuration.respond_to?(:instance) - abort "This extension requires Capistrano 2" -end - -Capistrano::Configuration.instance.load do - - namespace :deploy do - namespace :token do - - desc <<-DESC - Creates the secret token for the application. - DESC - task :setup, :except => { :no_release => true } do - - default_template = <<-EOF - BetaWebApp::Application.config.secret_token = '#{`bundle exec rake secret`}' - EOF - - run "mkdir -p #{shared_path}/config" - put default_template, "#{shared_path}/config/secret_token.rb" - end - - desc <<-DESC - [internal] Updates the symlink for secret_token.rb file to the just deployed release. - DESC - task :symlink, :except => { :no_release => true } do - run "ln -nfs #{shared_path}/config/secret_token.rb #{release_path}/config/secret_token.rb" - end - - end - - after "deploy:setup", "deploy:token:setup" unless fetch(:skip_token_setup, false) - after "deploy:finalize_update", "deploy:token:symlink" - end - -end |