Module: Gaudi

Defined in:
lib/gaudi/version.rb,
lib/custom/helpers/paths.rb,
lib/gaudi/helpers/artifacts.rb,
lib/gaudi/helpers/utilities.rb,
lib/gaudi/helpers/components.rb,
lib/gaudi/helpers/generators.rb,
lib/gaudi/helpers/operations.rb,
lib/gaudi/helpers/configuration.rb

Overview

A bootstrap for creating a build system for C or C++ based projects using rake.

Defined Under Namespace

Modules: ArtifactAdapters, Commandlines, Configuration, ConfigurationOperations, Documentation, PlatformOperations, Rules, StandardPaths, Tasks, ToolOperations, Utilities, Version Classes: Component, Deployment, Program

Class Method Summary collapse

Class Method Details

.configurationObject

Loads and returns the system configuration


9
10
11
12
13
14
15
16
17
18
19
# File 'lib/gaudi/helpers/configuration.rb', line 9

def self.configuration
  if ENV['GAUDI_CONFIG']
    #Load the system configuration
    ENV['GAUDI_CONFIG']=File.expand_path(ENV['GAUDI_CONFIG'])
    puts "Reading main configuration from \n\t#{ENV['GAUDI_CONFIG']}"
    system_config=Configuration::SystemConfiguration.new(ENV['GAUDI_CONFIG'])
    return system_config
  else
    raise "No configuration file (GAUDI_CONFIG is empty)"
  end
end