Class: Docurium::CLI
- Inherits:
-
Object
- Object
- Docurium::CLI
- Defined in:
- lib/docurium/cli.rb
Class Method Summary collapse
Class Method Details
.check(idir, options) ⇒ Object
9 10 11 12 |
# File 'lib/docurium/cli.rb', line 9 def self.check(idir, ) doc = Docurium.new(idir) doc.check_warnings() end |
.doc(idir, options) ⇒ Object
4 5 6 7 |
# File 'lib/docurium/cli.rb', line 4 def self.doc(idir, ) doc = Docurium.new(idir, ) doc.generate_docs end |
.gen(file) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/docurium/cli.rb', line 14 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 |