lib/migrator.rb in storageroom-to-contentful-0.0.3 vs lib/migrator.rb in storageroom-to-contentful-0.0.4
- old
+ new
@@ -11,10 +11,11 @@
1. Export data from StorageRoom to JSON files.
2. Convert StorageRoom field types to Contentful.
3. Import collections to Contentful.
4. Import entries to Contentful.
5. Publish all entries on Contentful.
+ 6. Test credentials.
-> Choose on of the options:
eoruby
def run
puts MESSAGE
@@ -31,9 +32,11 @@
contentful_importer.find_symbol_type_in_collection
when 4
contentful_importer.import_entries
when 5
contentful_importer.publish_all_entries
+ when 6
+ contentful_importer.test_credentials
end
end
def storage_room_exporter
@storage_room_exporter ||= StorageRoomExporter.new