Sha256: 4d22d9be58f67df84b330c3e5ac4b230e1d997c25e703bb97d9346d91538ce69

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

module AppDrone
class Javascript < Drone
  desc "Generates application.js.coffee with manifest options and jQuery load hooks"
  category :base
  attr_accessor :pipeline_requires, :on_readies

  def setup
    self.pipeline_requires = []
    self.on_readies = []

    self.pipeline 'jquery'
    self.pipeline 'jquery_ujs'
  end

  def pipeline(r); self.pipeline_requires << r end
  def on_ready(r); self.on_readies << r end

  def execute
    do! :application_coffee
  end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
app_drone-0.4.0 lib/app_drone/drones/javascript/javascript.rb