Class: Docurium::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/docurium/cli.rb

Class Method Summary collapse

Class Method Details

.doc(idir, options) ⇒ Object



4
5
6
7
# File 'lib/docurium/cli.rb', line 4

def self.doc(idir, options)
  doc = Docurium.new(idir)
  doc.generate_docs
end

.gen(file) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/docurium/cli.rb', line 9

def self.gen(file)

temp = "{\n \"name\":   \"project\",\n \"github\": \"user/project\",\n \"input\":  \"include/lib\",\n \"prefix\": \"lib_\",\n \"branch\": \"gh-pages\"\n}\n"
  puts "Writing to #{file}"
  File.open(file, 'w+') do |f|
    f.write(temp)
  end
end