Module: FedoraMigrate::MigrationOptions

Included in:
Mover, RepositoryMigrator
Defined in:
lib/fedora_migrate/migration_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conversionsObject

Returns the value of attribute conversions.



3
4
5
# File 'lib/fedora_migrate/migration_options.rb', line 3

def conversions
  @conversions
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/fedora_migrate/migration_options.rb', line 3

def options
  @options
end

Instance Method Details

#application_creates_versions?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/fedora_migrate/migration_options.rb', line 17

def application_creates_versions?
  option_true?(:application_creates_versions)
end

#blacklistObject



21
22
23
24
# File 'lib/fedora_migrate/migration_options.rb', line 21

def blacklist
  return [] if options.nil?
  options.fetch(:blacklist, [])
end

#conversion_optionsObject



5
6
7
# File 'lib/fedora_migrate/migration_options.rb', line 5

def conversion_options
  self.conversions = options.nil? ? [] : [options[:convert]].flatten
end

#forced?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/fedora_migrate/migration_options.rb', line 9

def forced?
  option_true?(:force)
end

#not_forced?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/fedora_migrate/migration_options.rb', line 13

def not_forced?
  !forced?
end