Method: Maid::App#daemon

Defined in:
lib/maid/app.rb

#daemonObject



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/maid/app.rb', line 80

def daemon
  maid = Maid::Maid.new(maid_options(options))
  
  if Maid::TrashMigration.needed?
    migrate_trash
    return
  end

  unless options.silent?
    say "Logging actions to #{ maid.log_device.inspect }"
  end
  
  maid.load_rules
  maid.daemonize
end