Skip to content

Commit

Permalink
add exists? method
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Feb 26, 2013
1 parent 5c76785 commit 24b0281
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/puppet/provider/sensu_client_subscription/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ def create
def destroy
@conf = nil
end

def exists?
@conf.has_key? 'subscription'
end
end

0 comments on commit 24b0281

Please sign in to comment.