Sha256: 780522a6aa09216bf1bd763a8648e07e11ab093b6b0ea68e04248706e7f18fcf

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

require 'erb'
require 'fletch'

class Assets < Thor
  desc 'fetch', 'fetch assets as defined in fletch.json'
  def fetch
    fetch_files
  end

  no_tasks do
    def fetch_files
      config.each do |library, options|
        Fletch::Asset.new(library, options).write
      end
    end

    def config
      @config ||= YAML.load(ERB.new(File.read("fletch.yml")).result)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
livelist-rails-0.0.18 lib/tasks/fletch.thor
livelist-rails-0.0.17 lib/tasks/fletch.thor
livelist-rails-0.0.16 lib/tasks/fletch.thor
livelist-rails-0.0.15 lib/tasks/fletch.thor
livelist-rails-0.0.14 lib/tasks/fletch.thor