summaryrefslogtreecommitdiff
path: root/lib/chef/resource/conditional.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/conditional.rb')
-rw-r--r--lib/chef/resource/conditional.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/conditional.rb b/lib/chef/resource/conditional.rb
index 12fd55d572..cdb9f13c45 100644
--- a/lib/chef/resource/conditional.rb
+++ b/lib/chef/resource/conditional.rb
@@ -30,11 +30,11 @@ class Chef
private :new
end
- def self.not_if(parent_resource, command=nil, command_opts={}, &block)
+ def self.not_if(parent_resource, command = nil, command_opts = {}, &block)
new(:not_if, parent_resource, command, command_opts, &block)
end
- def self.only_if(parent_resource, command=nil, command_opts={}, &block)
+ def self.only_if(parent_resource, command = nil, command_opts = {}, &block)
new(:only_if, parent_resource, command, command_opts, &block)
end
@@ -43,7 +43,7 @@ class Chef
attr_reader :command_opts
attr_reader :block
- def initialize(positivity, parent_resource, command=nil, command_opts={}, &block)
+ def initialize(positivity, parent_resource, command = nil, command_opts = {}, &block)
@positivity = positivity
@command, @command_opts = command, command_opts
@block = block
@@ -55,7 +55,7 @@ class Chef
def configure
case @command
- when String,Array
+ when String, Array
@guard_interpreter = Chef::GuardInterpreter.for_resource(@parent_resource, @command, @command_opts)
@block = nil
when nil