Sha256: ca2550a34d4643ee9ebc83c515a7238abc00ece23787b62b6f1941fb55639122

Contents?: true

Size: 720 Bytes

Versions: 9

Compression:

Stored size: 720 Bytes

Contents

module Jekyll
  module Golink
    module Theme

      # This module will load important utilities for every script.

      module Utils
        # # This methods will be used for the next advanced version!
        # # [Create a 'copyto' folder and put the files inside.]
        #
        # def copyto_path
        #    @copyto_path ||= File.join gem_path, 'copyto/.'
        # end
        # def gocopy!
        #   copyto_path
        #   FileUtils.cp_r "#{@copyto_path}", "."
        # end

        def gem_path
          @gem_path ||= File.expand_path '../..', File.dirname(__FILE__)
        end

        def create_folders (options = [])
          FileUtils::mkdir_p options
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
golink-1.0.9 lib/golink/template/utils.rb
golink-1.0.8 lib/golink/template/utils.rb
golink-1.0.7 lib/golink/template/utils.rb
golink-1.0.6 lib/golink/template/utils.rb
golink-1.0.4 lib/golink/template/utils.rb
golink-1.0.3 lib/golink/template/utils.rb
golink-1.0.2 lib/golink/template/utils.rb
golink-1.0.1 lib/golink/template/utils.rb
golink-1.0.0 lib/golink/template/utils.rb