Method: ContentfulMiddleman::ImportTask#run

Defined in:
lib/contentful_middleman/import_task.rb

#runObject



11
12
13
14
15
16
17
18
19
# File 'lib/contentful_middleman/import_task.rb', line 11

def run
  old_version_hash = ContentfulMiddleman::VersionHash.read_for_space(@space_name)

  LocalData::Store.new(local_data_files, @space_name).write

  new_version_hash = ContentfulMiddleman::VersionHash.write_for_space_with_entries(@space_name, entries)

  @changed_local_data = new_version_hash != old_version_hash
end