Sha256: 5447b00b598fef0de6e1e41e026bac34618fda72c90ece3bbe078f25e44d45a2

Contents?: true

Size: 879 Bytes

Versions: 65

Compression:

Stored size: 879 Bytes

Contents

# require "eitil_integrate/application_exporter/default_export"

require "eitil_integrate/application_exporter/initialize"

module EitilIntegrate::RubyXL
  class ApplicationExporter

    # The #create_file method is taken out of #export, to be overwritten by 
    # exports variants that want to loop over objects and call it multiple times.
    # => e.g. the context of multiple Environment for a single Organisation

    def export
      prepare_export
      create_file
      process_export
    end

    private

    def prepare_export
      validate_args_presence
      validate_args_value
    end

    def create_file
      name_sheet
      set_data
      validate_data
      fill_messages
      fill_header
      fill_file
    end

    def process_export
      style_file
      log_state
      save_file
    end

    alias_method :base_create_file, :create_file

  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
eitil-2.0.6 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.5 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.4 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.3 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.2 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.1 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-2.0.0 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.4.1 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.4.0 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.12 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.11 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.10 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.9 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.8 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.7 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.6 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.5 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.4 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.3 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb
eitil-1.3.2 eitil_integrate/lib/eitil_integrate/application_exporter/default_export.rb