[chef-dev] ::File notation


Chronological Thread 
  • From: Akzhan Abdulin < >
  • To: Avishai Ish-Shalom < >
  • Cc: Chef Dev < >
  • Subject: [chef-dev] ::File notation
  • Date: Tue, 16 Apr 2013 20:56:26 +0400

Hello Chiefs,

I have insight, - Chef classes should never be named as system ones.

We need to eliminate ::File and so on notation.

Yours sincerely,
  Akzhan.


2013/4/16 Avishai Ish-Shalom < " target="_blank"> >
inline_recipe "test" do
block do
log "testing resource group"
file "/tmp/test1" do
mode "0600"
end
end
action :nothing
notifies :write, "log[test]"
  only_if { ::File.exists? "/tmp/test2" }
end

https://github.com/avishai-ish-shalom/chef-inline-recipe/blob/master/recipes/default.rb






Archive powered by MHonArc 2.6.16.

§