Module: Locomotive::Mounter::Writer::Api

Defined in:
lib/locomotive/mounter/writer/api.rb,
lib/locomotive/mounter/writer/api/base.rb,
lib/locomotive/mounter/writer/api/site_writer.rb,
lib/locomotive/mounter/writer/api/pages_writer.rb,
lib/locomotive/mounter/writer/api/snippets_writer.rb,
lib/locomotive/mounter/writer/api/theme_assets_writer.rb,
lib/locomotive/mounter/writer/api/translations_writer.rb,
lib/locomotive/mounter/writer/api/content_types_writer.rb,
lib/locomotive/mounter/writer/api/content_assets_writer.rb,
lib/locomotive/mounter/writer/api/content_entries_writer.rb

Defined Under Namespace

Classes: Base, ContentAssetsWriter, ContentEntriesWriter, ContentTypesWriter, PagesWriter, Runner, SiteWriter, SnippetsWriter, ThemeAssetsWriter, TranslationsWriter

Class Method Summary collapse

Class Method Details

.instanceObject

Build a singleton instance of the Runner class.

Returns:

  • (Object)

    A singleton instance of the Runner class



10
11
12
# File 'lib/locomotive/mounter/writer/api.rb', line 10

def self.instance
  @@instance ||= Runner.new(:api)
end

.teardownObject



14
15
16
# File 'lib/locomotive/mounter/writer/api.rb', line 14

def self.teardown
  @@instance = nil
end