Module: Lono::Help

Defined in:
lib/lono/help.rb

Class Method Summary collapse

Class Method Details

.markdownObject

Generates a markdown file for site docuemtation



12
13
14
# File 'lib/lono/help.rb', line 12

def markdown

end

.text(namespaced_command) ⇒ Object

namespaced_command: cfn/create or cfn:create both work.



5
6
7
8
9
# File 'lib/lono/help.rb', line 5

def text(namespaced_command)
  path = namespaced_command.to_s.gsub(':','/')
  path = File.expand_path("../help/#{path}.md", __FILE__)
  IO.read(path) if File.exist?(path)
end