Sha256: 229faeb89397eab2080d4954c6ea029f9d69e3cd9c54abef9bf68a2c969f8377

Contents?: true

Size: 579 Bytes

Versions: 11

Compression:

Stored size: 579 Bytes

Contents

# Undefined unneeded tasks in instance mode
unless File.directory? "#{RAILS_ROOT}/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

11 entries across 11 versions & 1 rubygems

Version Path
radiant-0.6.1 lib/tasks/undefine.rake
radiant-0.6.0 lib/tasks/undefine.rake
radiant-0.6.2 lib/tasks/undefine.rake
radiant-0.6.3 lib/tasks/undefine.rake
radiant-0.6.4 lib/tasks/undefine.rake
radiant-0.6.5.1 lib/tasks/undefine.rake
radiant-0.6.5 lib/tasks/undefine.rake
radiant-0.6.6 lib/tasks/undefine.rake
radiant-0.6.7 lib/tasks/undefine.rake
radiant-0.6.9 lib/tasks/undefine.rake
radiant-0.6.8 lib/tasks/undefine.rake