Sha256: 9b5083d61069c77f9c142c2d3750256780dd159f33828e40743ca239caf9b64b

Contents?: true

Size: 556 Bytes

Versions: 15

Compression:

Stored size: 556 Bytes

Contents

# Undefined unneeded tasks in instance mode
unless Radiant.app?
  def undefine_task(*names)
    app = Rake.application
    tasks = app.instance_variable_get('@tasks')
    names.flatten.each { |name| tasks.delete(name) }
  end
  
  undefine_task %w(
    radiant:clobber_package 
    radiant:install_gem
    radiant:package
    radiant:release
    radiant:repackage
    radiant:uninstall_gem
    rails:freeze:edge
    rails:freeze:gems
    rails:unfreeze
    rails:update
    rails:update:configs
    rails:update:javascripts
    rails:update:scripts
  )
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.2.2 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.2.1 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.2 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.9 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.8 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.7 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.6 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.5 lib/tasks/undefine.rake
radiant-0.7.2 lib/tasks/undefine.rake
radiant-0.8.2 lib/tasks/undefine.rake
radiant-0.8.1 lib/tasks/undefine.rake
radiant-0.7.0 lib/tasks/undefine.rake
radiant-0.8.0 lib/tasks/undefine.rake
radiant-0.7.1 lib/tasks/undefine.rake