class Docurium::CLI

Public Class Methods

doc(idir, options) click to toggle source
# File lib/docurium/cli.rb, line 4
def self.doc(idir, options)
  doc = Docurium.new(idir)
  doc.generate_docs(options)
end
gen(file) click to toggle source
# File lib/docurium/cli.rb, line 9
    def self.gen(file)

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