Sha256: 6861d34d15d5a27332f3d3a32cb47726fb82c7f59a3af1ea6c01972bad311aab

Contents?: true

Size: 1.18 KB

Versions: 28

Compression:

Stored size: 1.18 KB

Contents

#
# Author:: Seth Chisamore <schisamo@opscode.com>
# Cookbook Name:: chef_handler
# Resource:: default
#
# Copyright:: 2011-2013, Opscode, Inc <legal@opscode.com>
#
# 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.
#

actions :enable, :disable

attribute :class_name, :kind_of => String, :name_attribute => true
attribute :source, :default => nil, :kind_of => String
attribute :arguments, :default => []
attribute :supports, :kind_of => Hash, :default => { :report => true, :exception => true }

# we have to set default for the supports attribute 
# in initializer since it is a 'reserved' attribute name
def initialize(*args)
  super
  @action = :enable
  @supports = { :report => true, :exception => true }
end

Version data entries

28 entries across 27 versions & 2 rubygems

Version Path
madscience-0.0.29 cookbooks/chef_handler/resources/default.rb
madscience-0.0.28 cookbooks/chef_handler/resources/default.rb
madscience-0.0.27 cookbooks/chef_handler/resources/default.rb
madscience-0.0.26 cookbooks/chef_handler/resources/default.rb
madscience-0.0.25 cookbooks/chef_handler/resources/default.rb
madscience-0.0.24 cookbooks/chef_handler/resources/default.rb
madscience-0.0.23 cookbooks/chef_handler/resources/default.rb
madscience-0.0.21 cookbooks/chef_handler/resources/default.rb
madscience-0.0.20 cookbooks/chef_handler/resources/default.rb
madscience-0.0.19 cookbooks/chef_handler/resources/default.rb
madscience-0.0.17 cookbooks/chef_handler/resources/default.rb
madscience-0.0.16 cookbooks/chef_handler/resources/default.rb
madscience-0.0.15 cookbooks/chef_handler/resources/default.rb
madscience-0.0.14 cookbooks/chef_handler/resources/default.rb
madscience-0.0.13 cookbooks/chef_handler/resources/default.rb
madscience-0.0.11 cookbooks/chef_handler/resources/default.rb
madscience-0.0.10 cookbooks/chef_handler/resources/default.rb
madscience-0.0.9 cookbooks/chef_handler/resources/default.rb
madscience-0.0.8 cookbooks/chef_handler/resources/default.rb
madscience-0.0.7 cookbooks/chef_handler/resources/default.rb