Method: Sigh::LocalManage.get_inputs

Defined in:
sigh/lib/sigh/local_manage.rb

.get_inputs(options, _args) ⇒ Object



42
43
44
45
46
47
48
# File 'sigh/lib/sigh/local_manage.rb', line 42

def self.get_inputs(options, _args)
  clean_expired = options.clean_expired
  clean_pattern = /#{options.clean_pattern}/ if options.clean_pattern
  force = options.force
  command = (!clean_expired.nil? || !clean_pattern.nil?) ? CLEANUP : LIST
  return command, clean_expired, clean_pattern, force
end