Skip to content

Commit dca7f2f

Browse files
committed
add the ability to pass supports to the service resource as an array
1 parent 6179d4d commit dca7f2f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

chef/lib/chef/resource/service.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ def running(arg=nil)
118118
)
119119
end
120120

121+
def supports(args={})
122+
if args.is_a? Array
123+
args.each { |arg| @supports[arg] = "true" }
124+
elsif args.any?
125+
@supports = args
126+
else
127+
@supports
128+
end
129+
end
130+
121131

122132
end
123133
end

0 commit comments

Comments
 (0)