Sha256: 844d09d40f03a0f8d88263bd594701bf22c0f6a882e2f09b46b090ff4287f7bb

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

# Undefined unneeded tasks in instance mode
unless Kajam.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(
    kajam:clobber_package 
    kajam:install_gem
    kajam:package
    kajam:release
    kajam:repackage
    kajam:uninstall_gem
    kajam:import:prototype:stylesheets
    kajam:import:prototype:images
    kajam:import:prototype:javascripts
    kajam: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

1 entries across 1 versions & 1 rubygems

Version Path
kajam-1.0.3.rc2 lib/tasks/undefine.rake