class PandaMOTD
Public Class Methods
new_motd()
click to toggle source
Creates a new MOTD
instance, assuming a config file has been passed as an argument to the command.
# File lib/panda_motd.rb, line 9 def self.new_motd if ARGV[0].nil? puts "You must provide a config file path as an argument to panda-motd." else MOTD.new(ARGV[0]) end end
root()
click to toggle source
Gets the root path of the gem.
# File lib/panda_motd.rb, line 18 def self.root File.expand_path("..", __dir__) end