Sha256: f3aecca955541f78405ff9a331e629d5831dcf11c8f5c2513ab6f4ee49ff822e
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
# # Author:: Adam Jacob (<adam@opscode.com>) # Author:: AJ Christensen (<aj@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # class Chef class Resource class RubyBlock < Chef::Resource def initialize(name, collection=nil, node=nil) super(name, collection, node) @resource_name = :ruby_block @action = "create" @allowed_actions.push(:create) end def block(&block) if block_given? and block @block = block else @block end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems