lib/chicken_soup/environment/checks.rb in chicken_soup-0.6.1 vs lib/chicken_soup/environment/checks.rb in chicken_soup-0.8.0

- old
+ new

@@ -4,21 +4,19 @@ # Sets up a first-pass environment check for the deployment. # # First, an environment MUST be present in order for any deployment # to happen. It's a safety measure that this is explicitly stated. # -# It also checks to make sure that the :application and -# :application_short environment variables have been set. +# It also checks to make sure that the :application environment +# variable has been set. # # This happens before any of the capabilities have been added to the # deployment and therefore that is all we know to check for at this # point. # ###################################################################### Capistrano::Configuration.instance(:must_exist).load do - extend ChickenSoup - on :start, 'environment:variable:check', :except => ['staging', 'production'] before 'deploy', 'environment:deployment:check' before 'deploy:cold', 'environment:deployment:check' before 'deploy:subzero', 'environment:deployment:check' @@ -31,11 +29,10 @@ task :check do abort "You need to specify staging or production when you deploy. ie 'cap staging db:backup'" unless exists?(:rails_env) abort "You need to specify a deployment type in your application's 'deploy.rb' file. ie 'set :deployment_type, :heroku'" unless exists?(:deployment_type) required_variables = [ - :application, - :application_short + :application ] verify_variables(required_variables) end end