class Object
Public Instance Methods
generate_options()
click to toggle source
# File lib/netsuite_rails/tasks/netsuite.rb, line 3 def generate_options opts = { skip_existing: ENV['SKIP_EXISTING'].present? && ENV['SKIP_EXISTING'] == "true" } if !ENV['RECORD_MODELS'].nil? opts[:record_models] = ENV['RECORD_MODELS'].split(',').map(&:constantize) end if !ENV['LIST_MODELS'].nil? opts[:list_models] = ENV['LIST_MODELS'].split(',').map(&:constantize) end # field values might change on import because of remote data structure changes # stop all pushes on sync & fresh_sync to avoid pushing up data that really hasn't # changed for each record # TODO make push disabled configurable NetSuiteRails::Configuration.netsuite_push_disabled true opts end