Sha256: 27be92b780b5ca944e48f088a3386dbf01b4042ad501fb9a97d4ba714da15506
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
module BowerVendor class Base def initialize end def vendors @vendors ||= YAML.load_file('vendor.yml') end def config @config ||= load_config('config/bower_vendor.yml') @config ||= load_config(File.join(BowerVendor.root_dir, 'config/bower_vendor.yml')) end def load_config(file) if File.exist?(file) YAML.load_file(file) else nil end end def base_src_dir @base_src_dir ||= 'bower_components' end def work_dir if defined?(Rails) "#{Rails.root}/tmp" else 'tmp' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bower_vendor-0.0.6 | lib/bower_vendor/base.rb |
bower_vendor-0.0.5 | lib/bower_vendor/base.rb |