Module: Verku
- Defined in:
- lib/verku.rb,
lib/verku/cli.rb,
lib/verku/toc.rb,
lib/verku/stats.rb,
lib/verku/stream.rb,
lib/verku/version.rb,
lib/verku/exporter.rb,
lib/verku/toc/epub.rb,
lib/verku/toc/html.rb,
lib/verku/generator.rb,
lib/verku/dependency.rb,
lib/verku/source_list.rb,
lib/verku/exporter/pdf.rb,
lib/verku/exporter/base.rb,
lib/verku/exporter/epub.rb,
lib/verku/exporter/html.rb,
lib/verku/exporter/mobi.rb
Defined Under Namespace
Modules: TOC
Classes: Cli, Dependency, Exporter, Generator, SourceList, Stats, Stream
Constant Summary
collapse
- ROOT =
Pathname.new(File.dirname(__FILE__) + "/..")
- VERSION =
'0.16.6'
Class Method Summary
collapse
Class Method Details
.config(root_dir = nil) ⇒ Object
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/verku.rb', line 47
def self.config(root_dir = nil)
root_dir ||= Pathname.new(Dir.pwd)
path = root_dir.join("_verku.yml")
raise "Invalid Verku directory; couldn't found #{path} file." unless File.file?(path)
content = File.read(path)
erb = ERB.new(content).result
SafeYAML::OPTIONS[:default_mode] = true
YAML.load(erb, :safe => true)
end
|
.hi ⇒ Object
60
61
62
|
# File 'lib/verku.rb', line 60
def self.hi
puts "hi"
end
|
.logger ⇒ Object
57
58
59
|
# File 'lib/verku.rb', line 57
def self.logger
@logger ||= Logger.new(File.open("/tmp/verku.log", "a"))
end
|