Class: PandaMOTD
- Inherits:
-
Object
- Object
- PandaMOTD
- Defined in:
- lib/panda_motd.rb,
lib/panda_motd/version.rb
Class Method Summary collapse
Class Method Details
.new_motd ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/panda_motd.rb', line 5 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 ⇒ Object
13 14 15 |
# File 'lib/panda_motd.rb', line 13 def self.root File.('..', __dir__) end |