Method: Foreman::Export::Base#export

Defined in:
lib/foreman/export/base.rb

#exportObject



22
23
24
25
26
27
# File 'lib/foreman/export/base.rb', line 22

def export
  error("Must specify a location") unless location
  FileUtils.mkdir_p(location) rescue error("Could not create: #{location}")
  chown user, log
  chown user, run
end