module Pakman

Constants

VERSION

Public Class Methods

banner() click to toggle source
main() click to toggle source
# File lib/pakman.rb, line 62
def self.main
  Runner.new.run(ARGV)
end
pakname_from_file( path ) click to toggle source

downcase and remove .txt (if anywhere in name) e.g. welcome.quick.txt becomes welcome.quick

welcome.txt.quick becomse welcome.quick
s6blank.txt becomes s6blank
# File lib/pakman/utils.rb, line 11
def self.pakname_from_file( path )
  File.basename( path ).downcase.gsub( '.txt', '' )
end
root() click to toggle source
# File lib/pakman.rb, line 58
def self.root
  "#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
end