class Pione::Command::PioneCleanContext

‘PioneCleanContext` is a process context for `pione-clean-context`.

Public Instance Methods

delete?(entry) click to toggle source

Return true if the entry should be removed.

# File lib/pione/command/pione-clean.rb, line 168
def delete?(entry)
  not(entry.exist?) or model[:older].nil? or model[:older] >= entry.mtime.to_date
end
type?(type) click to toggle source

Return true if the type is matched.

# File lib/pione/command/pione-clean.rb, line 163
def type?(type)
  model[:type] == "all" or model[:type] == type
end