Class Buildr::Settings
In: lib/buildr/core/application.rb  (CVS)
Parent: Object

Provide settings that come from three sources.

User settings are placed in the .buildr/settings.yaml file located in the user‘s home directory. They should only be used for settings that are specific to the user and applied the same way across all builds. Example for user settings are preferred repositories, path to local repository, user/name password for uploading to remote repository.

Build settings are placed in the build.yaml file located in the build directory. They help keep the buildfile and build.yaml file simple and readable, working to the advantages of each one. Example for build settings are gems, repositories and artifacts used by that build.

Profile settings are placed in the profiles.yaml file located in the build directory. They provide settings that differ in each environment the build runs in. For example, URLs and database connections will be different when used in development, test and production environments. The settings for the current environment are obtained by calling profile.

Methods

build   profile   profiles   user  

Public Instance methods

Build settings loaded from build.yaml file in build directory.

Returns the profile for the current environment.

Profiles loaded from profiles.yaml file in build directory.

User settings loaded from setting.yaml file in user‘s home directory.

[Validate]