Skip to content

Commit 6ffd4eb

Browse files
author
Ezra Zygmuntowicz
committed
only_if not not_if
1 parent 229986c commit 6ffd4eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chef/lib/chef/resource/execute.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def group(arg=nil)
8282

8383
def only_if(arg=nil, &blk)
8484
if Kernel.block_given?
85-
@not_if = blk
85+
@only_if = blk
8686
else
87-
@not_if = arg if arg
87+
@only_if = arg if arg
8888
end
89-
@not_if
89+
@only_if
9090
end
9191

9292
def path(arg=nil)

0 commit comments

Comments
 (0)