<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Making Configuration Files with YAML: Revised</title>
	<atom:link href="http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/feed/" rel="self" type="application/rss+xml" />
	<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/</link>
	<description>think. code. design. innovate.</description>
	<lastBuildDate>Wed, 28 Dec 2011 12:01:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Tim Knight</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-301</link>
		<dc:creator><![CDATA[Tim Knight]]></dc:creator>
		<pubDate>Wed, 01 Jun 2011 12:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-301</guid>
		<description><![CDATA[Thanks Peter. Yes you can reference other settings by setting there name with &amp;name. You can see that in use where I&#039;m importing all of the development settings into the test environment. You pointed out however that you can set individual items as well—thanks for digging into more details on the concept.]]></description>
		<content:encoded><![CDATA[<p>Thanks Peter. Yes you can reference other settings by setting there name with &amp;name. You can see that in use where I&#8217;m importing all of the development settings into the test environment. You pointed out however that you can set individual items as well—thanks for digging into more details on the concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Nixey</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-300</link>
		<dc:creator><![CDATA[Peter Nixey]]></dc:creator>
		<pubDate>Wed, 01 Jun 2011 10:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-300</guid>
		<description><![CDATA[This is really useful thank you. After looking at this I wondered how you could DRY the config file up and discovered that you can use &#039;anchors&#039; and &#039;references&#039; to do this. 
(http://en.wikipedia.org/wiki/YAML#Language_elements)

For instance, if the site title is the same in development as test and production then you can define it as follows:

development:
  site_title: &amp;title My new website

test: 
  site_title: *title

production
  site_title: *title

Thanks for the post and hope this is helpful :)]]></description>
		<content:encoded><![CDATA[<p>This is really useful thank you. After looking at this I wondered how you could DRY the config file up and discovered that you can use &#8216;anchors&#8217; and &#8216;references&#8217; to do this.<br />
(<a href="http://en.wikipedia.org/wiki/YAML#Language_elements" rel="nofollow">http://en.wikipedia.org/wiki/YAML#Language_elements</a>)</p>
<p>For instance, if the site title is the same in development as test and production then you can define it as follows:</p>
<p>development:<br />
  site_title: &amp;title My new website</p>
<p>test:<br />
  site_title: *title</p>
<p>production<br />
  site_title: *title</p>
<p>Thanks for the post and hope this is helpful :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pritesh</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-299</link>
		<dc:creator><![CDATA[Pritesh]]></dc:creator>
		<pubDate>Mon, 16 May 2011 17:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-299</guid>
		<description><![CDATA[cool...I am newbie to RoR and this article made my day , was looking for somthing like this to make the code look simple and flexible... thanks a lot Tim !]]></description>
		<content:encoded><![CDATA[<p>cool&#8230;I am newbie to RoR and this article made my day , was looking for somthing like this to make the code look simple and flexible&#8230; thanks a lot Tim !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Knight</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-296</link>
		<dc:creator><![CDATA[Tim Knight]]></dc:creator>
		<pubDate>Fri, 15 Apr 2011 12:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-296</guid>
		<description><![CDATA[Hi Dc,

That&#039;s a really good question. When it comes to whether or not you would add config.yml to your .gitignore personally I feel it just depends. It depends of course first on what the material is you are using in your configuration and secondly it depends on if you repository is public or private. If you do leave it out I would suggest creating a config.sample.yml with test data in it so other contributors on the project can understand the structure of the file. When it comes to deployment I would say that if you are running a public project where the file does not exist I would likely consider looking for a way to create the file within my deployment script. A good example of that would be &lt;a href=&quot;https://github.com/stolt45/ey-databaseyml&quot; rel=&quot;nofollow&quot;&gt;EngineYard&#039;s chef recipe for creating the database.yml file&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>Hi Dc,</p>
<p>That&#8217;s a really good question. When it comes to whether or not you would add config.yml to your .gitignore personally I feel it just depends. It depends of course first on what the material is you are using in your configuration and secondly it depends on if you repository is public or private. If you do leave it out I would suggest creating a config.sample.yml with test data in it so other contributors on the project can understand the structure of the file. When it comes to deployment I would say that if you are running a public project where the file does not exist I would likely consider looking for a way to create the file within my deployment script. A good example of that would be <a href="https://github.com/stolt45/ey-databaseyml" rel="nofollow">EngineYard&#8217;s chef recipe for creating the database.yml file</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dc</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-295</link>
		<dc:creator><![CDATA[Dc]]></dc:creator>
		<pubDate>Fri, 15 Apr 2011 00:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-295</guid>
		<description><![CDATA[Hi, this is a great article for newbies like me. I&#039;ve actually looked all over and this seems to be the best resource for understanding. 

I have a few questions if you don&#039;t mind to clear some things up. 

First off, do you include config.yml in your .gitignore file so that it is private and not tracked and when pushing to a remote repo on github? (for private things like API or s3 keys)

And if you do add config.yml to your gitignore file. When pushing up to a cloud server such as heroku, how does heroku have contact with your config.yml file if it&#039;s not on github.

Thanks again for the helpful post!]]></description>
		<content:encoded><![CDATA[<p>Hi, this is a great article for newbies like me. I&#8217;ve actually looked all over and this seems to be the best resource for understanding. </p>
<p>I have a few questions if you don&#8217;t mind to clear some things up. </p>
<p>First off, do you include config.yml in your .gitignore file so that it is private and not tracked and when pushing to a remote repo on github? (for private things like API or s3 keys)</p>
<p>And if you do add config.yml to your gitignore file. When pushing up to a cloud server such as heroku, how does heroku have contact with your config.yml file if it&#8217;s not on github.</p>
<p>Thanks again for the helpful post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Knight</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-288</link>
		<dc:creator><![CDATA[Tim Knight]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 13:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-288</guid>
		<description><![CDATA[You&#039;ll actually find something like this in most larger Rails applications (from my experience). It&#039;s great for API keys and all the various configuration details that might differ between the multiple environments. Ryan Bates (of Railscasts fame) has a similar config file system in his nifty_generators nifty_config feature at https://github.com/ryanb/nifty-generators. Enjoy!]]></description>
		<content:encoded><![CDATA[<p>You&#8217;ll actually find something like this in most larger Rails applications (from my experience). It&#8217;s great for API keys and all the various configuration details that might differ between the multiple environments. Ryan Bates (of Railscasts fame) has a similar config file system in his nifty_generators nifty_config feature at <a href="https://github.com/ryanb/nifty-generators" rel="nofollow">https://github.com/ryanb/nifty-generators</a>. Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jyoseph</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-287</link>
		<dc:creator><![CDATA[jyoseph]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 04:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-287</guid>
		<description><![CDATA[Thanks for the clarification on that, I&#039;m actually more excited than I should be about this, hah! It allowed me to have some app-specific settings that I would not want to commit to github. I saw some other solutions (gems/plugins) but all seemed too heavy for what I needed. Thanks again!]]></description>
		<content:encoded><![CDATA[<p>Thanks for the clarification on that, I&#8217;m actually more excited than I should be about this, hah! It allowed me to have some app-specific settings that I would not want to commit to github. I saw some other solutions (gems/plugins) but all seemed too heavy for what I needed. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Knight</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-286</link>
		<dc:creator><![CDATA[Tim Knight]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 02:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-286</guid>
		<description><![CDATA[jyoseph,

Glad you liked it! I hope it is helpful for you. The code is run as an initializer so it runs on application initialization storing the information into a constant. While it might run with each request in development mode (can&#039;t recall) it should only run on initialization during production mode.]]></description>
		<content:encoded><![CDATA[<p>jyoseph,</p>
<p>Glad you liked it! I hope it is helpful for you. The code is run as an initializer so it runs on application initialization storing the information into a constant. While it might run with each request in development mode (can&#8217;t recall) it should only run on initialization during production mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jyoseph</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-285</link>
		<dc:creator><![CDATA[jyoseph]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 02:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-285</guid>
		<description><![CDATA[This is freaking awesome. I&#039;m also a rails newb and this was drop dead simple.

Question, the file will only be read once right, when the app starts? (as opposed to every request)]]></description>
		<content:encoded><![CDATA[<p>This is freaking awesome. I&#8217;m also a rails newb and this was drop dead simple.</p>
<p>Question, the file will only be read once right, when the app starts? (as opposed to every request)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheapRoc</title>
		<link>http://innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/#comment-102</link>
		<dc:creator><![CDATA[cheapRoc]]></dc:creator>
		<pubDate>Tue, 03 Feb 2009 16:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://innovativethought.wordpress.com/2009/01/03/making-configuration-files-with-yaml-revised/#comment-102</guid>
		<description><![CDATA[AppConfig = OpenStruct.new(YAML.load_file(&quot;#{RAILS_ROOT}/config/app_config.yml&quot;)[Rails.env].symbolize_keys) if require &#039;ostruct&#039;

So you can do something like...

AppConfig.site_title

Not sure how it works with your nested Yaml config file though.]]></description>
		<content:encoded><![CDATA[<p>AppConfig = OpenStruct.new(YAML.load_file(&#8220;#{RAILS_ROOT}/config/app_config.yml&#8221;)[Rails.env].symbolize_keys) if require &#8216;ostruct&#8217;</p>
<p>So you can do something like&#8230;</p>
<p>AppConfig.site_title</p>
<p>Not sure how it works with your nested Yaml config file though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

