module Hippo::Command
Public Class Methods
load_current_extension(raise_on_fail:false)
click to toggle source
# File lib/hippo/command.rb, line 14 def load_current_extension(raise_on_fail:false) Hippo::Extensions.bootstrap(raise_on_fail: raise_on_fail) end
usage_from_file(file)
click to toggle source
Reads and returns the contents of a usage file. Used internally by commands to populate their long_desc @param [String] basename of file to read usage from
# File lib/hippo/command.rb, line 10 def usage_from_file(file) Pathname.new(__FILE__).dirname.join("command","#{file}.usage").read.gsub(/\n/,"\n\x5") end