Class: AppDrone::Bootstrap

Inherits:
Drone
  • Object
show all
Defined in:
lib/app_drone/drones/bootstrap/bootstrap.rb

Instance Attribute Summary

Attributes inherited from Drone

#params

Instance Method Summary collapse

Methods inherited from Drone

#>>, #^, categories, category, dependants, dependencies, depends_on, desc, #do!, #do_finally!, drones, #execute, #flair!, generator_method, human_name, #initialize, #method_missing, #notify!, owns_generator_method, #pair?, pairs, pairs_with, param, #param, param_named, param_with, params, precursors, #render, run_after, #setup, to_sym

Constructor Details

This class inherits a constructor from AppDrone::Drone

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AppDrone::Drone

Instance Method Details

#alignObject



14
15
16
17
18
19
20
21
# File 'lib/app_drone/drones/bootstrap/bootstrap.rb', line 14

def align
  bundle.add 'bootstrap-sass', group: :assets
  bundle.add 'font-awesome-sass-rails', group: :assets if param(:font_awesome)
  stylesheet.import 'bootstrap'
  stylesheet.import 'font-awesome' if param(:font_awesome)
  param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
  flair!
end