summaryrefslogtreecommitdiff
path: root/spec/support/lib/chef/resource/one_two_three_four.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-01-23 15:25:49 -0800
committerdanielsdeleo <dan@opscode.com>2013-01-23 15:25:49 -0800
commit9c95cb722a44440830cfc4da1c57f4815dafe904 (patch)
treecba364d6a568a5d33baea3bbb6ee07d6f7f98ed4 /spec/support/lib/chef/resource/one_two_three_four.rb
parent53fa8088240f19a1dfc589d9ba07098cbdd9bba2 (diff)
downloadchef-9c95cb722a44440830cfc4da1c57f4815dafe904.tar.gz
remove cruft code.
In all of github there is not a single cookbook using this.
Diffstat (limited to 'spec/support/lib/chef/resource/one_two_three_four.rb')
-rw-r--r--spec/support/lib/chef/resource/one_two_three_four.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/spec/support/lib/chef/resource/one_two_three_four.rb b/spec/support/lib/chef/resource/one_two_three_four.rb
index 4f4b063eb6..296d2cd970 100644
--- a/spec/support/lib/chef/resource/one_two_three_four.rb
+++ b/spec/support/lib/chef/resource/one_two_three_four.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -20,23 +20,21 @@ class Chef
class Resource
class OneTwoThreeFour < Chef::Resource
attr_reader :i_can_count
-
+
def initialize(name, run_context)
@resource_name = :one_two_three_four
super
end
-
+
def i_can_count(tf)
@i_can_count = tf
end
-
+
def something(arg=nil)
- set_if_args(@something, arg) do
- case arg
- when true, false
- @something = arg
- end
+ if arg == true or arg == false
+ @something = arg
end
+ @something
end
end
end