Sha256: 3fb48815d414288a54e192567328dd295e9401485df59f0c4bb271ec2c3c497b

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

module Pieces
  class Generator
    def init(config)
      FileUtils.mkdir_p(config[:path])
      Dir["#{example_path}/{config,layouts,pieces}"].each { |dir| FileUtils.cp_r(dir, config[:path]) }
    end

    private

    def example_path
      File.dirname(__FILE__) + '/../../example'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pieces-0.1.0 lib/pieces/generator.rb