File: README.md

package info (click to toggle)
ruby-buff-config 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 200 kB
  • sloc: ruby: 481; makefile: 3
file content (37 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Buff::Config
[![Gem Version](https://badge.fury.io/rb/buff-config.png)](http://badge.fury.io/rb/buff-config)
[![Build Status](https://travis-ci.org/RiotGames/buff-config.png?branch=master)](https://travis-ci.org/RiotGames/buff-config)

A simple configuration class

## Installation

Add this line to your application's Gemfile:

    gem 'buff-config'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install buff-config

## Usage

    require 'buff/config/json'

    class MyConfig < Buff::Config::JSON
      attribute 'chef.chef_server_url'
    end

    my_config = MyConfig.new
    my_config.chef.chef_server_url #=> nil

# Authors and Contributors

* Jamie Winsor (<jamie@vialstudios.com>)
* Kyle Allan (<kallan@riotgames.com>)

Thank you to all of our [Contributors](https://github.com/RiotGames/buff-config/graphs/contributors), testers, and users.