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.088 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.087 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.086 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.085 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.084 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.083 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.082 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.081 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.080 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.079 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.078 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.077 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.076 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.075 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.074 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.073 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.072 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.071 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.070 lib/deprec/recipes_minus_rails.rb
le1t0-deprec-2.1.6.069 lib/deprec/recipes_minus_rails.rb