Sha256: e9ed0f1b9889318754c4ee44c2b8a401af2e5c7112973631eea6ef3b80c2fd89

Contents?: true

Size: 1.12 KB

Versions: 57

Compression:

Stored size: 1.12 KB

Contents

unless Capistrano::Configuration.respond_to?(:instance)
  abort "deprec2 requires Capistrano 2"
end

require "#{File.dirname(__FILE__)}/deprec/capistrano_extensions"
require "#{File.dirname(__FILE__)}/vmbuilder_plugins/all"
require "#{File.dirname(__FILE__)}/deprec/recipes"

# The below: Copyright 2009-2010 by le1t0@github. All rights reserved.
# add missing standard tasks to the various namespaces, so generic scripts won't break, the standard tasks are for now:
standard_tasks = [
  :install,
  :config_gen,
  :config_project_gen,
  :config_system_gen,
  :config,
  :config_project,
  :config_system,
  :start,
  :stop,
  :restart,
  :reload,
  :activate,
  :deactivate,
  :backup,
  :restore,
  :status
]
Capistrano::Configuration.instance.deprec.namespaces.keys.each do |ns_name|
  ns = Capistrano::Configuration.instance.deprec.send(ns_name)
  standard_tasks.each do |standard_task|
    unless ns.respond_to?(standard_task)
      Capistrano::Configuration.instance.namespace :deprec do
        namespace ns_name do
          task standard_task do
            # nothing to be done here
          end
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.057 lib/deprec.rb
le1t0-deprec-2.1.6.056 lib/deprec.rb
le1t0-deprec-2.1.6.055 lib/deprec.rb
le1t0-deprec-2.1.6.054 lib/deprec.rb
le1t0-deprec-2.1.6.053 lib/deprec.rb
le1t0-deprec-2.1.6.052 lib/deprec.rb
le1t0-deprec-2.1.6.051 lib/deprec.rb
le1t0-deprec-2.1.6.050 lib/deprec.rb
le1t0-deprec-2.1.6.049 lib/deprec.rb
le1t0-deprec-2.1.6.048 lib/deprec.rb
le1t0-deprec-2.1.6.047 lib/deprec.rb
le1t0-deprec-2.1.6.046 lib/deprec.rb
le1t0-deprec-2.1.6.045 lib/deprec.rb
le1t0-deprec-2.1.6.044 lib/deprec.rb
le1t0-deprec-2.1.6.043 lib/deprec.rb
le1t0-deprec-2.1.6.042 lib/deprec.rb
le1t0-deprec-2.1.6.041 lib/deprec.rb
le1t0-deprec-2.1.6.040 lib/deprec.rb
le1t0-deprec-2.1.6.039 lib/deprec.rb
le1t0-deprec-2.1.6.038 lib/deprec.rb