Module: PaliCanon

Extended by:
PaliCanon
Included in:
PaliCanon
Defined in:
lib/pali-canon.rb,
lib/pali-canon/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#classes_dirObject



13
14
15
# File 'lib/pali-canon.rb', line 13

def classes_dir
  join datadir, 'classes'
end

#compile(dir) ⇒ Object



23
24
25
26
27
28
# File 'lib/pali-canon.rb', line 23

def compile dir
  Dir.chdir dir do
    system 'nanoc compile'
    move_directory_conents_here_with_removing_all_files_and_dirs_found_nearby 'output', danger: true
  end
end

#content_dirObject



9
10
11
# File 'lib/pali-canon.rb', line 9

def content_dir
  join datadir, 'content'
end

#datadirObject



5
6
7
# File 'lib/pali-canon.rb', line 5

def datadir
  Gem.datadir('pali-canon')
end

#prepare(dir) ⇒ Object



17
18
19
20
21
# File 'lib/pali-canon.rb', line 17

def prepare dir
  system "nanoc-oo #{dir} --blank"
  cp_r content_dir, dir
  cp_r classes_dir, join(dir,'lib')
end