Class: PandaMOTD

Inherits:
Object
  • Object
show all
Defined in:
lib/panda_motd.rb,
lib/panda_motd/version.rb

Class Method Summary collapse

Class Method Details

.new_motdObject



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

.rootObject



13
14
15
# File 'lib/panda_motd.rb', line 13

def self.root
  File.expand_path('..', __dir__)
end