Sha256: 6f590580ab330b40c2eafd0e91fc143b614b3469ae63946541812e6af3d679f5
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Capucine class Watchr require 'compass-sass.rb' require 'coffeescript.rb' require "templates.rb" def self.watch config_file = nil self.compile config_file if config_file Capucine.settings.get_config config_file else Capucine.settings.get_config end @config = Capucine.settings.config sass_proc = Capucine::CompassSass.proc_watch if @config['sass_enable'] coffeescript_proc = Capucine::Coffee.proc_watch if @config['coffeescript_enable'] templates_proc = Capucine::Templates.proc_watch if @config['templates_enable'] sass_proc.join if sass_proc coffeescript_proc.join if coffeescript_proc templates_proc.join if templates_proc end def self.compile config_file = nil if config_file Capucine.settings.get_config config_file else Capucine.settings.get_config end puts Capucine.settings.working_dir @config = Capucine.settings.config Capucine::CompassSass.run_once if @config['sass_enable'] Capucine::Coffee.run_once if @config['coffeescript_enable'] Capucine::Templates.run_once if @config['templates_enable'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capucine-0.0.9 | lib/watch.rb |