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.037 lib/deprec.rb
le1t0-deprec-2.1.6.036 lib/deprec.rb
le1t0-deprec-2.1.6.035 lib/deprec.rb
le1t0-deprec-2.1.6.034 lib/deprec.rb
le1t0-deprec-2.1.6.033 lib/deprec.rb
le1t0-deprec-2.1.6.032 lib/deprec.rb
le1t0-deprec-2.1.6.031 lib/deprec.rb
le1t0-deprec-2.1.6.030 lib/deprec.rb
le1t0-deprec-2.1.6.029 lib/deprec.rb
le1t0-deprec-2.1.6.028 lib/deprec.rb
le1t0-deprec-2.1.6.027 lib/deprec.rb
le1t0-deprec-2.1.6.026 lib/deprec.rb
le1t0-deprec-2.1.6.025 lib/deprec.rb
le1t0-deprec-2.1.6.024 lib/deprec.rb
le1t0-deprec-2.1.6.023 lib/deprec.rb
le1t0-deprec-2.1.6.022 lib/deprec.rb
le1t0-deprec-2.1.6.021 lib/deprec.rb
le1t0-deprec-2.1.6.020 lib/deprec.rb
le1t0-deprec-2.1.6.019 lib/deprec.rb
le1t0-deprec-2.1.6.018 lib/deprec.rb