class Jobly::Commands::InfoCmd
Public Instance Methods
run()
click to toggle source
# File lib/jobly/commands/info.rb, line 10 def run raise InfoFileNotFound, info_file unless File.exist? info_file puts TTY::Markdown.parse(info, theme: { header: [:green, :bold], em: [:magenta, :bold], hr: :yellow, link: [:blue, :underline], list: :cyan, strong: [:cyan, :bold], table: :yellow, quote: :magenta }) end
Private Instance Methods
info()
click to toggle source
# File lib/jobly/commands/info.rb, line 25 def info @info ||= File.read info_file end
info_file()
click to toggle source
# File lib/jobly/commands/info.rb, line 29 def info_file @info_file ||= File.expand_path 'info.md', Jobly.config_path end