module FedoraMigrate::MigrationOptions

Attributes

conversions[RW]
options[RW]

Public Instance Methods

application_creates_versions?() click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 17
def application_creates_versions?
  option_true?(:application_creates_versions)
end
blacklist() click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 21
def blacklist
  return [] if options.nil?
  options.fetch(:blacklist, [])
end
conversion_options() click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 5
def conversion_options
  self.conversions = options.nil? ? [] : [options[:convert]].flatten
end
forced?() click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 9
def forced?
  option_true?(:force)
end
not_forced?() click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 13
def not_forced?
  !forced?
end

Private Instance Methods

option_true?(name) click to toggle source
# File lib/fedora_migrate/migration_options.rb, line 28
def option_true?(name)
  return false unless options
  options.fetch(name, false)
end