Sha256: 547b9e2c71bcf935090e8e118a3764284471345f244348bb360dbe4f194ec9e6
Contents?: true
Size: 1.45 KB
Versions: 10
Compression:
Stored size: 1.45 KB
Contents
require 'rake' require File.expand_path(File.join(File.dirname(__FILE__), '..', 'whiskey_disk')) namespace :deploy do desc "Perform initial setup for deployment" task :setup do WhiskeyDisk.ensure_main_parent_path_is_present WhiskeyDisk.ensure_config_parent_path_is_present if WhiskeyDisk.has_config_repo? WhiskeyDisk.checkout_main_repository WhiskeyDisk.checkout_configuration_repository if WhiskeyDisk.has_config_repo? WhiskeyDisk.update_main_repository_checkout WhiskeyDisk.update_configuration_repository_checkout if WhiskeyDisk.has_config_repo? WhiskeyDisk.refresh_configuration if WhiskeyDisk.has_config_repo? WhiskeyDisk.run_post_setup_hooks WhiskeyDisk.flush end desc "Deploy now." task :now do WhiskeyDisk.enable_staleness_checks WhiskeyDisk.update_main_repository_checkout WhiskeyDisk.update_configuration_repository_checkout if WhiskeyDisk.has_config_repo? WhiskeyDisk.refresh_configuration if WhiskeyDisk.has_config_repo? WhiskeyDisk.run_post_deploy_hooks WhiskeyDisk.flush end task :post_setup do env = WhiskeyDisk[:environment] Rake::Task["deploy:#{env}:post_setup"].invoke if Rake::Task.task_defined? "deploy:#{env}:post_setup" end task :post_deploy do env = WhiskeyDisk[:environment] Rake::Task["deploy:#{env}:post_deploy"].invoke if Rake::Task.task_defined? "deploy:#{env}:post_deploy" end end
Version data entries
10 entries across 10 versions & 1 rubygems