Class: Contentful::Importer::PublishEntries

Inherits:
Command
  • Object
show all
Defined in:
lib/contentful/importer/publish_entries.rb

Instance Attribute Summary

Attributes inherited from Command

#config, #converter, #importer, #json_validator

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

data_options, #initialize, space_options, thread_options

Constructor Details

This class inherits a constructor from Contentful::Importer::Command

Class Method Details

.optionsObject



9
10
11
# File 'lib/contentful/importer/publish_entries.rb', line 9

def self.options
	super.concat(data_options).sort
end

.publish(importer) ⇒ Object



13
14
15
# File 'lib/contentful/importer/publish_entries.rb', line 13

def self.publish(importer)
	importer.publish_entries_in_threads
end

Instance Method Details

#runObject



17
18
19
20
# File 'lib/contentful/importer/publish_entries.rb', line 17

def run
	super
	self.class.publish(@importer)
end