Module: FedoraMigrate::MigrationOptions
- Included in:
- Mover, RepositoryMigrator
- Defined in:
- lib/fedora_migrate/migration_options.rb
Instance Attribute Summary collapse
-
#conversions ⇒ Object
Returns the value of attribute conversions.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #application_creates_versions? ⇒ Boolean
- #blacklist ⇒ Object
- #conversion_options ⇒ Object
- #forced? ⇒ Boolean
- #not_forced? ⇒ Boolean
Instance Attribute Details
#conversions ⇒ Object
Returns the value of attribute conversions.
4 5 6 |
# File 'lib/fedora_migrate/migration_options.rb', line 4 def conversions @conversions end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/fedora_migrate/migration_options.rb', line 4 def end |
Instance Method Details
#application_creates_versions? ⇒ Boolean
18 19 20 |
# File 'lib/fedora_migrate/migration_options.rb', line 18 def application_creates_versions? option_true?(:application_creates_versions) end |
#blacklist ⇒ Object
22 23 24 25 |
# File 'lib/fedora_migrate/migration_options.rb', line 22 def blacklist return [] if .nil? .fetch(:blacklist, []) end |
#conversion_options ⇒ Object
6 7 8 |
# File 'lib/fedora_migrate/migration_options.rb', line 6 def self.conversions = .nil? ? [] : [[:convert]].flatten end |
#forced? ⇒ Boolean
10 11 12 |
# File 'lib/fedora_migrate/migration_options.rb', line 10 def forced? option_true?(:force) end |
#not_forced? ⇒ Boolean
14 15 16 |
# File 'lib/fedora_migrate/migration_options.rb', line 14 def not_forced? !forced? end |