class Pwl::Commands::Delete
Public Instance Methods
call(args, options)
click to toggle source
# File lib/pwl/commands/delete.rb, line 4 def call(args, options) exit_with(:name_blank, options.verbose) if 0 == args.size || args[0].blank? begin locker = open_locker(options) rescue Pwl::Dialog::Cancelled exit_with(:aborted, options.verbose) end locker.delete(args[0]) msg "Successfully deleted the value under #{args[0]}." if options.verbose end