Class: Pwl::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pwl/commands/base.rb

Direct Known Subclasses

Add, Delete, Export, Get, Init, List, Passwd, Stats

Class Method Summary collapse

Class Method Details

.default_locker_fileObject



32
33
34
# File 'lib/pwl/commands/base.rb', line 32

def default_locker_file
  File.expand_path("~/.#{program(:name)}.pstore")
end

.exit_codes_helpObject



28
29
30
# File 'lib/pwl/commands/base.rb', line 28

def exit_codes_help
  EXIT_CODES.values.sort{|l,r| l.exit_code <=> r.exit_code}.collect{|m| "      #{m.exit_code.to_s.rjust(EXIT_CODES.size.to_s.size)}: #{m.to_s}"}.join("\n")
end