Class: Pwl::Commands::Base
- Inherits:
-
Object
- Object
- Pwl::Commands::Base
show all
- Defined in:
- lib/pwl/commands/base.rb
Class Method Summary
collapse
Class Method Details
.default_locker_file ⇒ Object
32
33
34
|
# File 'lib/pwl/commands/base.rb', line 32
def default_locker_file
File.expand_path("~/.#{program(:name)}.pstore")
end
|
.exit_codes_help ⇒ Object
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
|