CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 22 Aug 2025 11:30:17 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100505022820
location: https://web.archive.org/web/20100505022820/https://github.com/opscode/mixlib-config/tree/master
server-timing: captures_list;dur=0.581000, exclusion.robots;dur=0.019461, exclusion.robots.policy;dur=0.008820, esindex;dur=0.012252, cdx.remote;dur=17.541796, LoadShardBlock;dur=419.542918, PetaboxLoader3.resolve;dur=227.579096, PetaboxLoader3.datanode;dur=138.469705
x-app-server: wwwb-app214
x-ts: 302
x-tr: 461
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Fri, 22 Aug 2025 11:30:18 GMT
content-type: text/html; charset=utf-8
content-length: 105
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 05 May 2010 02:28:17 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20100505022820/https://github.com/opscode/mixlib-config
x-archive-orig-x-runtime: 5ms
x-archive-orig-content-length: 105
x-archive-orig-cache-control: no-cache
cache-control: max-age=1800
memento-datetime: Wed, 05 May 2010 02:28:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 05 May 2010 02:28:20 GMT", ; rel="memento"; datetime="Wed, 05 May 2010 02:28:20 GMT", ; rel="next memento"; datetime="Fri, 23 Jun 2023 10:19:49 GMT", ; rel="last memento"; datetime="Fri, 23 Jun 2023 10:19:50 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100505005446_crawl100-c/52_15_20100505022525_crawl101.arc.gz
server-timing: captures_list;dur=0.542168, exclusion.robots;dur=0.017764, exclusion.robots.policy;dur=0.008428, esindex;dur=0.014776, cdx.remote;dur=13.691388, LoadShardBlock;dur=253.966343, PetaboxLoader3.datanode;dur=87.752754, PetaboxLoader3.resolve;dur=240.843270, load_resource;dur=105.484167
x-app-server: wwwb-app214
x-ts: 301
x-tr: 397
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 22 Aug 2025 11:30:18 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 05 May 2010 02:28:17 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "66c9537ebf6e86db52a4260224b8c66c"
x-archive-orig-x-runtime: 175ms
x-archive-orig-content-length: 25316
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 05 May 2010 02:28:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 03 May 2010 00:21:31 GMT", ; rel="prev memento"; datetime="Mon, 03 May 2010 00:21:31 GMT", ; rel="memento"; datetime="Wed, 05 May 2010 02:28:20 GMT", ; rel="next memento"; datetime="Fri, 04 May 2012 14:05:42 GMT", ; rel="last memento"; datetime="Sun, 15 Jun 2025 06:54:42 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100505005446_crawl100-c/52_15_20100505022525_crawl101.arc.gz
server-timing: captures_list;dur=0.846935, exclusion.robots;dur=0.024851, exclusion.robots.policy;dur=0.010753, esindex;dur=0.012364, cdx.remote;dur=73.883984, LoadShardBlock;dur=188.160636, PetaboxLoader3.datanode;dur=123.873122, PetaboxLoader3.resolve;dur=125.416569, load_resource;dur=80.747617
x-app-server: wwwb-app214
x-ts: 200
x-tr: 407
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
opscode's mixlib-config at master - GitHub
opscode / mixlib-config
- Source
- Commits
- Network (14)
- Issues (0)
- Downloads (14)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
A simple class based Config mechanism, similar to the one found in Chef — Read more
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Thu Feb 18 14:03:40 -0800 2010 | added gemspec to gitignore [Christopher Brown] |
![]() |
LICENSE | Wed Mar 11 18:11:34 -0700 2009 | Initial commit [adamhjk] |
![]() |
NOTICE | Wed Mar 11 18:11:34 -0700 2009 | Initial commit [adamhjk] |
![]() |
README.rdoc | Wed Mar 11 18:11:34 -0700 2009 | Initial commit [adamhjk] |
![]() |
Rakefile | Sun Feb 28 12:11:27 -0800 2010 | Adding the gemcutter task [adamhjk] |
![]() |
VERSION.yml | Sun Feb 28 11:41:47 -0800 2010 | Updating the version to 1.1.0 [adamhjk] |
![]() |
features/ | Thu Aug 20 10:57:36 -0700 2009 | fixed the @@configuration class variable bug, u... [Nuo Yan] |
![]() |
lib/ | Tue Jan 26 16:59:22 -0800 2010 | Merge branch 'master' of github.com:opscode/mix... [adamhjk] |
![]() |
spec/ | Mon Aug 24 15:14:13 -0700 2009 | added config_attr_writer [Christopher Brown] |
README.rdoc
Mixlib::Config
Mixlib::Config provides a class-based configuration object, like the one used in Chef. To use in your project:
require 'rubygems' require 'mixlib/config' class MyConfig extend(Mixlib::Config) configure do |c| c[:first_value] = 'something' c[:other_value] = 'something_else' end end
Or…
class MyConfig extend(Mixlib::Config) first_value 'something' other_value 'something_else' end
To check a configuration variable:
MyConfig.first_value # returns 'something' MyConfig[:first_value] # returns 'something'
To change a configuration variable at runtime:
MyConfig.first_value('foobar') # sets first_value to 'foobar' MyConfig[:first_value] = 'foobar' # sets first_value to 'foobar'
You should populate your class with the default values for every configuration variable that might be accessed. If you try and access a variable that does not exist, Mixlib::Config will throw an <ArgumentError>.
To load a ruby configuration file (which will evaluate in the context of your configuration class):
MyConfig.from_file('your_config_file.rb')
Enjoy!