compat_resource 12.5.2 → 12.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/files/lib/chef_compat/resource.rb +5 -0
- data/files/lib/chef_compat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897c4e0b7216ae640a1442e03b48ea21347f85dd
|
4
|
+
data.tar.gz: 18df17d62d9ab553f10e68582d69fa12e5e6831e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e323fc8a53d720e561caf8cf2a7528b66cacc4ad3d0e4a0a4ae3bd7dbeb96d42842d139e4444b6ab8384dc7653454e5adc742dedf16db674aae48bb7233aaa
|
7
|
+
data.tar.gz: aa7315484f3536f33d8362edde64f1bb250a4372d1d7644d7b3395787b2c7d6b16e8ca8ad88883f67f814496a9af98a61c5f061505084928df25d0be989d4187
|
@@ -3,6 +3,11 @@ require 'chef_compat/copied_from_chef/chef/resource'
|
|
3
3
|
|
4
4
|
module ChefCompat
|
5
5
|
class Resource < ChefCompat::CopiedFromChef::Chef::Resource
|
6
|
+
def initialize(*args, &block)
|
7
|
+
super
|
8
|
+
# @resource_name is used in earlier Chef versions
|
9
|
+
@resource_name = self.class.resource_name
|
10
|
+
end
|
6
11
|
# Things we'll need to define ourselves:
|
7
12
|
# 1. provider
|
8
13
|
# 2. resource_name
|