Sha256: c77bffb77335c718583565ae3cf01dc951276d8e7af6ce72accef3fce78ba5eb

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

ZfbenRailsRakePath = File.join File.dirname(__FILE__), 'zfben_rails_rake'

if defined? Rails
  module ZfbenRailsRake
    class Railtie < Rails::Railtie
      railtie_name :zfben_rails_rake  
      rake_tasks do
        require ZfbenRailsRakePath + '/helper.rb'
        Dir[File.join(ZfbenRailsRakePath, 'tasks', '*')].each{ |f| require f }
      end
    end
  end
else
  require ZfbenRailsRakePath + '/helper.rb'
  Dir[File.join(ZfbenRailsRakePath, 'tasks', '*')].each{ |f| require f }
  task :default do
    p 'ok'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zfben_rails_rake-0.0.18 lib/zfben_rails_rake.rb
zfben_rails_rake-0.0.17 lib/zfben_rails_rake.rb
zfben_rails_rake-0.0.16 lib/zfben_rails_rake.rb
zfben_rails_rake-0.0.15 lib/zfben_rails_rake.rb
zfben_rails_rake-0.0.14 lib/zfben_rails_rake.rb