Sha256: 2a78b0e5664bce05636f7ece15ffef7bf475ec2979228a8c322fa7af8041da3a
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
###################################################################### # CAPABILITIES SETUP # # Beginning here, the deployment will utilize the :capabilities array # which should have been set in the deploy.rb file. If :capabilites # was not set, then nothing else is loaded. # # If it was set, we first load all of the default values for each # capability's environment variables. # # Next, we verify that each capability has what it needs to proceed # through the rest of the deployment. If not, the deployment will # abort. # ###################################################################### Capistrano::Configuration.instance(:must_exist).load do extend ChickenSoup require 'chicken_soup/capabilities/defaults' require 'chicken_soup/capabilities/checks' require 'chicken_soup/capabilities/tasks' ['defaults', 'checks', 'tasks'].each do |method| desc "[internal] This task is only here because `require` cannot be used within a `namespace`" task "load_capability_#{method}".to_sym do require_if_exists "chicken_soup/capabilities/#{deployment_type}/#{deployment_type}-#{method}" fetch(:capabilities).each do |capability| require_if_exists "chicken_soup/capabilities/#{capability}/#{capability}-#{method}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chicken_soup-0.6.1 | lib/chicken_soup/capabilities.rb |
chicken_soup-0.6.0 | lib/chicken_soup/capabilities.rb |