Sha256: 90b1824763e5adf742aa198506abb67f37b75fed0d5b5d2f0bf9979c414f9b1e
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
#!/usr/bin/env ruby $: << File.dirname(__FILE__)+'/../lib' require 'configliere' # Intro text puts %Q{ This is a demo of the Configliere interface. It takse settings Try running it as ./examples/simple_script.rb --sprats.wife=fat --spider=drainspout with those args, we expect: {:spider=>"drainspout", :cat=>"hat", :sprats=>{:wife=>"fat", :jack=>"lean"}, :cow=>"moon"} } Settings.use(:commandline, :config_file, :cat => 'bag', :cow => 'moon') Settings.read File.dirname(__FILE__)+'/simple_script.yaml' Settings.resolve! # Print results print ' actual: ' p Settings
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
configliere-0.0.3 | examples/simple_script.rb |
configliere-0.0.2 | examples/simple_script.rb |