Module: GeraBlog

Defined in:
lib/gerablog/blog.rb,
lib/gerablog/render.rb,
lib/gerablog/version.rb,
lib/gerablog/redcarpet.rb

Overview

GeraBlog - a Static Blog Generator

Defined Under Namespace

Classes: Blog, RedcarpetCustom, RedcarpetDriver, Render

Constant Summary collapse

VERSION =
'0.2.2'.freeze

Class Method Summary collapse

Class Method Details

.create_dir(dir) ⇒ Object



14
15
16
# File 'lib/gerablog/blog.rb', line 14

def self.create_dir(dir)
  FileUtils.mkdir_p(dir) unless Dir.exist?(dir)
end

.make_dest_dir(src, dest, remove: false) ⇒ Object



8
9
10
11
12
# File 'lib/gerablog/blog.rb', line 8

def self.make_dest_dir(src, dest, remove: false)
  return unless Dir.exist? src

  FileUtils.cp_r(src, dest, remove_destination: remove)
end