Class: JekyllBasic

Inherits:
Generator show all
Defined in:
lib/generators/jekyll_basic.rb

Instance Method Summary collapse

Methods inherited from Generator

#initialize, #make_dir, #make_file, #post_install, #pre_install

Constructor Details

This class inherits a constructor from Generator

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/jekyll_basic.rb', line 4

def run
  make_dir("_posts")
  make_dir("_layouts")
  make_dir("css")
  make_dir("js")
  make_dir("img")

  make_file("index.html")
  make_file("_layouts/default.html")
  make_file("css/style.css")
end