module Jekyll::Golink::Theme::Utils

This module will load important utilities for every script.

Public Instance Methods

create_folders(options = []) click to toggle source
# File lib/golink/template/utils.rb, line 23
def create_folders (options = [])
  FileUtils::mkdir_p options
end
gem_path() click to toggle source

# 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

# File lib/golink/template/utils.rb, line 19
def gem_path
  @gem_path ||= File.expand_path '../..', File.dirname(__FILE__)
end