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.
3 4 5 |
# File 'lib/fedora_migrate/migration_options.rb', line 3 def conversions @conversions end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/fedora_migrate/migration_options.rb', line 3 def @options end |
Instance Method Details
#application_creates_versions? ⇒ Boolean
17 18 19 |
# File 'lib/fedora_migrate/migration_options.rb', line 17 def application_creates_versions? option_true?(:application_creates_versions) end |
#blacklist ⇒ Object
21 22 23 24 |
# File 'lib/fedora_migrate/migration_options.rb', line 21 def blacklist return [] if .nil? .fetch(:blacklist, []) end |
#conversion_options ⇒ Object
5 6 7 |
# File 'lib/fedora_migrate/migration_options.rb', line 5 def self.conversions = .nil? ? [] : [[:convert]].flatten end |
#forced? ⇒ Boolean
9 10 11 |
# File 'lib/fedora_migrate/migration_options.rb', line 9 def forced? option_true?(:force) end |
#not_forced? ⇒ Boolean
13 14 15 |
# File 'lib/fedora_migrate/migration_options.rb', line 13 def not_forced? !forced? end |