Sha256: 2debff3fd9fa45a1063d19aa7120d0a9d5978a281564de89f39879220cdf0d6d

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 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
    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

3 entries across 3 versions & 1 rubygems

Version Path
help_desk_dashboard-0.0.8 lib/help_desk_dashboard/dashboard_generator.rb
help_desk_dashboard-0.0.7 lib/help_desk_dashboard/dashboard_generator.rb
help_desk_dashboard-0.0.6 lib/help_desk_dashboard/dashboard_generator.rb