Sha256: befef0ab3d2f4a06ad298be21907ed5e873a661376fe12a456180e15c0a2ec7f

Contents?: true

Size: 946 Bytes

Versions: 7

Compression:

Stored size: 946 Bytes

Contents

class DebugController < ApplicationController

  def metadata_backup
    res = Optimacms::BackupMetadata::TemplateImport.perform_backup

    x =0

  end

  def import_templates
    dirname = "/data/projects/myrails/cms/site/spec/dummy/temp/metadata/2017.09.09.17.08.31"

    @templates = Optimacms::BackupMetadata::TemplateImport.analyze_data_templates(dirname)

    x =0

  end

  def analyze_import_template
    @filename = "/data/projects/myrails/cms/site/spec/dummy/temp/metadata/example/templates/newfolder--t1.json"



    @res = Optimacms::BackupMetadata::TemplateImport.analyze_template_file(@filename)




  end

  def import_template
    @dirname = "/data/projects/myrails/cms/site/spec/dummy/temp/metadata/2017.09.20.20.21.07/templates"
    @filename = "pages--iphone7.json"
    @cmd = "add"
    #@cmd = "update"

    @res = Optimacms::BackupMetadata::TemplateImport.import_template(@dirname, @filename, @cmd)


    x =0

  end



end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
optimacms-0.4.3 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.4.2 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.3.35 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.3.34 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.3.30 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.3.29 spec/dummy/app/controllers/debug_controller.rb
optimacms-0.3.23 spec/dummy/app/controllers/debug_controller.rb