blob: bc227164f616f45e937690f9b353e1513dfdc6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
$:.unshift(File.expand_path("../lib", __FILE__))
require 'chef'
TEST_FILE = "/tmp/whyrun-test.txt"
Chef::Config[:why_run] = true
r = Chef::Resource::File.new(TEST_FILE)
r.content("#{Time.new}")
r.run_action(:create)
|