module Mypg

Constants

VERSION

Public Class Methods

files_to_keep() click to toggle source
# File lib/mypg.rb, line 11
def files_to_keep
  if yaml && yaml['files_to_keep']
    yaml['files_to_keep']
  else
    7
  end
end
target_directory() click to toggle source
# File lib/mypg.rb, line 5
def target_directory
  if yaml
    yaml['target_directory'] 
  end
end

Private Class Methods

yaml() click to toggle source
# File lib/mypg.rb, line 22
def self.yaml
  YAML.load_file(Rails.root.join('config/mypg.yml').to_s)
rescue Errno::ENOENT
  nil
end