Sha256: ca20e19fd6eb6407ee6bff14ff6d712a28e68b1ce06ed86b3878ad247e3bfea3
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
module FedoraMigrate module MigrationOptions attr_accessor :options, :conversions def conversion_options self.conversions = options.nil? ? [] : [options[:convert]].flatten end def forced? option_true?(:force) end def not_forced? !forced? end def application_creates_versions? option_true?(:application_creates_versions) end def blacklist return [] if options.nil? options.fetch(:blacklist, []) end private def option_true?(name) !!(options && options[name]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fedora-migrate-0.3.0 | lib/fedora_migrate/migration_options.rb |