Sha256: b27fbc1a2f8c1169c550b134e32aae64ff02adbc5120e0c922bc1962e7d35374

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

module BowerVendor
  class Base
    def initialize
    end

    def vendors
      @vendors ||= YAML.load_file('vendor.yml')
    end

    def config
#      @config ||= YAML.load_file('vendor_config.yml')
      @config ||= {
        base_dir: 'vendor/assets',
        dst_dirs: {
          'css' => 'stylesheets',
          'js' => 'javascripts',
        }
      }
    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

1 entries across 1 versions & 1 rubygems

Version Path
bower_vendor-0.0.4 lib/bower_vendor/base.rb