class Contentful::DatabaseImporter::Config

Configuration for Importer

Attributes

database_connection[RW]
environment[RW]
locale[RW]
skip_content_types[RW]
space_id[RW]
space_name[RW]

Public Class Methods

new() click to toggle source
# File lib/contentful/database_importer/config.rb, line 12
def initialize
  @environment = 'master'
  @skip_content_types = true
  @locale = 'en-US'
end

Public Instance Methods

complete?() click to toggle source
# File lib/contentful/database_importer/config.rb, line 26
def complete?
  complete_for_run? || complete_for_update?
end
complete_for_run?() click to toggle source
# File lib/contentful/database_importer/config.rb, line 18
def complete_for_run?
  !space_name.nil? && !database_connection.nil?
end
complete_for_update?() click to toggle source
# File lib/contentful/database_importer/config.rb, line 22
def complete_for_update?
  !space_id.nil? && !database_connection.nil?
end