Module: Lono::Help
- Defined in:
- lib/lono/help.rb
Class Method Summary collapse
-
.markdown ⇒ Object
Generates a markdown file for site docuemtation.
-
.text(namespaced_command) ⇒ Object
namespaced_command: cfn/create or cfn:create both work.
Class Method Details
.markdown ⇒ Object
Generates a markdown file for site docuemtation
11 12 13 |
# File 'lib/lono/help.rb', line 11 def markdown end |
.text(namespaced_command) ⇒ Object
namespaced_command: cfn/create or cfn:create both work.
4 5 6 7 8 |
# File 'lib/lono/help.rb', line 4 def text(namespaced_command) path = namespaced_command.to_s.gsub(':','/') path = File.("../help/#{path}.md", __FILE__) IO.read(path) if File.exist?(path) end |