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.



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

def conversions
  @conversions
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#application_creates_versions?Boolean

Returns:

  • (Boolean)


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

def application_creates_versions?
  option_true?(:application_creates_versions)
end

#blacklistObject



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

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

#conversion_optionsObject



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

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

#forced?Boolean

Returns:

  • (Boolean)


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

def forced?
  option_true?(:force)
end

#not_forced?Boolean

Returns:

  • (Boolean)


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

def not_forced?
  !forced?
end