Sha256: 418a7ca2c1a26e8128c9ca5c7039049d362e4c9598c5203ee0dbd74c9da451da

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

require 'fileutils'
require_relative 'lib/app_config'
require_relative 'lib/data_file_generator'

class DashboardGenerator

  def initialize(config)
    @config = AppConfig.new config
  end

  def generate
    output_dir = @config[:output_dir]
    FileUtils.mkdir_p output_dir
    data_file_generator = DataFileGenerator.new @config, File.join(output_dir, 'data')
    data_file_generator.generate
    source_dir = File.join File.dirname(__FILE__), 'lib', 'web'
    FileUtils.cp_r "#{source_dir}/.", output_dir
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
help_desk_dashboard-0.0.5 lib/help_desk_dashboard/dashboard_generator.rb