Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Forked from skeptomai/gist:100681
Created August 12, 2011 14:04
Show Gist options
  • Save jtimberman/1142099 to your computer and use it in GitHub Desktop.
Save jtimberman/1142099 to your computer and use it in GitHub Desktop.
(require 'chef)
(resource :file "/tmp/foo"
:owner "cb"
:action :create)
(resource :file (concatenate 'string "/tmp/" (node-attributes :hostname) "-made-with-lisp")
:action :create)
;; or
(file :path "/tmp/foo"
:owner "cb"
:action :create)
(file :path (concatenate 'string "/tmp/" (node-attributes :hostname) "-made-with-lisp")
:action :create)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment