Module: Capistrano::Isitdeployed::Debug

Defined in:
lib/capistrano/isitdeployed/debug.rb

Class Method Summary collapse

Class Method Details

.load_into(configuration) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/capistrano/isitdeployed/debug.rb', line 4

def self.load_into(configuration)
  configuration.load do
    ############################################################
    # /!\ DEBUG ONLY
    # Do not use unless you want to poluate your data
    namespace :isit do
      namespace :check do
        desc "DO NOT USE - Check feature for success"
        task :success do
          find_and_execute_task("isit:deploy")
          sleep(5)
          find_and_execute_task("isit:status:success")
          find_and_execute_task("isit:update")
        end

        desc "DO NOT USE - Check feature for rollback"
        task :rollback do
          find_and_execute_task("isit:deploy")
          sleep(5)
          find_and_execute_task("isit:status:rollback")
          find_and_execute_task("isit:update")
        end
      end
      ############################################################
    end
  end
end