diff options
author | danielsdeleo <dan@opscode.com> | 2012-12-21 11:29:29 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-12-27 09:37:44 -0700 |
commit | 1fbf3f48454ae47e13cdb502ad5d040865a9989a (patch) | |
tree | b9f0c608334605c3479c1de53de9939c329ab18c /spec/data/lwrp | |
parent | 76a1a65943fd80e9e05f37c0f7e19fe673819675 (diff) | |
download | chef-1fbf3f48454ae47e13cdb502ad5d040865a9989a.tar.gz |
[CHEF-3681] Test LWPs with inline compilation
Diffstat (limited to 'spec/data/lwrp')
-rw-r--r-- | spec/data/lwrp/providers/inline_compiler.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/data/lwrp/providers/inline_compiler.rb b/spec/data/lwrp/providers/inline_compiler.rb new file mode 100644 index 0000000000..2535276b24 --- /dev/null +++ b/spec/data/lwrp/providers/inline_compiler.rb @@ -0,0 +1,26 @@ + +use_inline_resources + +action :test do + + ruby_block "interior-ruby-block-1" do + block do + # doesn't need to do anything + end + notifies :run, "ruby_block[interior-ruby-block-2]", :immediately + end + + ruby_block "interior-ruby-block-2" do + block do + $interior_ruby_block_2 = "executed" + end + action :nothing + end +end + +action :no_updates do + ruby_block "no-action" do + block {} + action :nothing + end +end |