Sha256: eb4f40f0d72fea11ae4fbcecf35743319f9d44c35ca962817d39fa530c11b018

Contents?: true

Size: 1.11 KB

Versions: 85

Compression:

Stored size: 1.11 KB

Contents

# Copyright 2006-2010 by Mike Bailey, le1t0@github. All rights reserved.
unless Capistrano::Configuration.respond_to?(:instance)
  abort "deprec2 requires Capistrano 2"
end

# manually loading all recipes is cumbersome and leads to a lot of conflicts when merging branches.
# I rewrote this file so recipes get loaded automatically. Only files mentioned in the preload_recipes list and all
# files ending in .rb get loaded, so rename them to prevent them being loaded (as I did with some based on the
# old code)

# Loading is done as follows:
# - preload a couple of recipes in a certain order
# - load all other recipes in directory order

preload_recipes = [ "canonical", "deprec", "deprecated" ]
base_recipes = Dir.glob("#{File.dirname(__FILE__)}/recipes/*.rb").collect do |filename|
  File.basename(filename, '.rb')
end
alternatives_recipes = Dir.glob("#{File.dirname(__FILE__)}/recipes/*/*.rb").collect do |filename|
  "#{File.basename(File.dirname(filename))}/#{File.basename(filename, '.rb')}"
end

(preload_recipes + base_recipes + alternatives_recipes).each do |recipe|
  require "#{File.dirname(__FILE__)}/recipes/#{recipe}"
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.068 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.067 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.066 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.065 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.064 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.063 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.062 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.061 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.059 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.058 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.057 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.056 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.055 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.054 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.053 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.052 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.051 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.050 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.049 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.048 lib/deprec/recipes_minus_rails.rb