Class Gemnasium::Configuration
In: lib/gemnasium/configuration.rb
Parent: Object

Methods

Constants

DEFAULT_CONFIG = { 'site' => 'gemnasium.com', 'use_ssl' => true, 'api_version' => 'v3', 'ignored_paths' => [] }

Attributes

api_key  [RW] 
api_version  [RW] 
ignored_paths  [RW] 
path  [R] 
profile_name  [RW] 
project_branch  [RW] 
project_name  [RW] 
project_slug  [RW] 
site  [RW] 
use_ssl  [RW] 

Public Class methods

Initialize the configuration object from a YAML file

@param config_file [String] path to the configuration file

Public Instance methods

Store a key-value pair in the configuration file with an optional comment. Try to preserve the comments and the indentation of the file. We assume the configuration file already features the given key.

@param key [String] key @param value [String] value to store for given key @param comment [String] optional comment

[Validate]