Class: RugularBowerComponents
- Inherits:
-
Object
- Object
- RugularBowerComponents
- Defined in:
- lib/rugular/tasks/server/guards/rugular_bower_components.rb
Class Method Summary collapse
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize ⇒ RugularBowerComponents
constructor
A new instance of RugularBowerComponents.
Constructor Details
#initialize ⇒ RugularBowerComponents
Returns a new instance of RugularBowerComponents.
9 |
# File 'lib/rugular/tasks/server/guards/rugular_bower_components.rb', line 9 def initialize; end |
Class Method Details
.compile ⇒ Object
5 6 7 |
# File 'lib/rugular/tasks/server/guards/rugular_bower_components.rb', line 5 def self.compile new.compile end |
Instance Method Details
#compile ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rugular/tasks/server/guards/rugular_bower_components.rb', line 11 def compile ::Guard::UI.info 'Beginning to create a manifest bower files' File.open('.tmp/vendor.css', 'w') do |file| file.write bower_css end File.open('.tmp/vendor.js', 'w') do |file| file.write bower_javascript end 'Successfully created manifest bower files' end |