Sha256: 8fe09d92508b6a62162e4a2b497da1ad2730f83f47f1d2828625d2ed1e1491a8

Contents?: true

Size: 758 Bytes

Versions: 2

Compression:

Stored size: 758 Bytes

Contents

# Incomplete
module AppDrone
class Bootstrap < Drone
  desc "Installs Twitter Bootstrap stylesheets and javascripts"
  param :vendor, :boolean, info: 'download a local copy into the repo'
  param :responsive, :boolean, info: 'include responsive grid'

  depends_on :bundle, :stylesheet, :javascript

  def align
    bundle.add 'compass_twitter_bootstrap', group: :assets

    if params[:vendor]
      # TODO different require paths for stylesheet
    else
      stylesheet.add_import 'compass_twitter_bootstrap'
      stylesheet.add_import 'compass_twitter_bootstrap_responsive' if params[:responsive]
      # TODO js imports - based on options
    end
  end

  def execute
    if params[:vendor]
      # TODO pull files in via github
    end
  end

end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
app_drone-0.1.0 lib/app_drone/drones/zzz/bootstrap/bootstrap.rb
app_drone-0.1.0 lib/app_drone/drones/zzz/bootstrap/bootstrap.rb~