Sha256: a896a8c110ab5e0928ea16f8066dd729c45f65fc5291c98b00997be9658dc3ab

Contents?: true

Size: 705 Bytes

Versions: 11

Compression:

Stored size: 705 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
    radiant:import:prototype:styles
    radiant:import:prototype:images
    radiant:import:prototype:javascripts
    radiant:import:prototype:assets
    rails:freeze:edge
    rails:freeze:gems
    rails:unfreeze
    rails:update
    rails:update:configs
    rails:update:javascripts
    rails:update:scripts
  )
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
radiant-1.0.0.rc2 lib/tasks/undefine.rake
radiant-1.0.0.rc1 lib/tasks/undefine.rake
radiant-rails3-0.1 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.4 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.3 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.2 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1.1 lib/tasks/undefine.rake
radiantcms-couchrest_model-0.1 lib/tasks/undefine.rake
radiant-0.9.1 lib/tasks/undefine.rake
radiant-0.9.0.rc2 lib/tasks/undefine.rake
radiant-rc-0.9.0 lib/tasks/undefine.rake