Sha256: 12558fe86a23e7f31b39a27471ebf170f367d16a0b094f5f14203b2f8402b705

Contents?: true

Size: 559 Bytes

Versions: 12

Compression:

Stored size: 559 Bytes

Contents

module Aigu
  class Exporter
    def initialize(opts = {})
      @output_file = opts[:'output-file']
      @input_directory = opts[:'input-directory']
      @locale = opts[:locale]
      @ignore = opts[:ignore]
    end

    def process!
      puts "Generating Accent JSON file `#{@output_file}` based on localization files in `#{@input_directory}` directory"

      if @ignore
        print 'Ignoring '
        puts @ignore.join(', ')
      end

      puts '---'

      build_output
      write_json_file

      puts '---'
      puts 'Done'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
aigu-1.2 lib/aigu/exporter.rb
aigu-1.1.1 lib/aigu/exporter.rb
aigu-1.1 lib/aigu/exporter.rb
aigu-1.0.3 lib/aigu/exporter.rb
aigu-1.0.2 lib/aigu/exporter.rb
aigu-1.0.1 lib/aigu/exporter.rb
aigu-1.0 lib/aigu/exporter.rb
aigu-0.7 lib/aigu/exporter.rb
aigu-0.6.1 lib/aigu/exporter.rb
aigu-0.6 lib/aigu/exporter.rb
aigu-0.5.1 lib/aigu/exporter.rb
aigu-0.5 lib/aigu/exporter.rb