summaryrefslogtreecommitdiff
path: root/spec/support/lib
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/lib')
-rw-r--r--spec/support/lib/chef/provider/easy.rb8
-rw-r--r--spec/support/lib/chef/provider/snakeoil.rb8
-rw-r--r--spec/support/lib/chef/resource/cat.rb10
3 files changed, 13 insertions, 13 deletions
diff --git a/spec/support/lib/chef/provider/easy.rb b/spec/support/lib/chef/provider/easy.rb
index 054b45256c..a4d285a838 100644
--- a/spec/support/lib/chef/provider/easy.rb
+++ b/spec/support/lib/chef/provider/easy.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.
@@ -22,11 +22,11 @@ class Chef
def load_current_resource
true
end
-
+
def action_sell
true
end
-
+
def action_buy
true
end
diff --git a/spec/support/lib/chef/provider/snakeoil.rb b/spec/support/lib/chef/provider/snakeoil.rb
index c5d8d52a82..e9d01f654f 100644
--- a/spec/support/lib/chef/provider/snakeoil.rb
+++ b/spec/support/lib/chef/provider/snakeoil.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.
@@ -22,7 +22,7 @@ class Chef
def load_current_resource
true
end
-
+
def action_purr
@new_resource.updated_by_last_action(true)
true
@@ -31,7 +31,7 @@ class Chef
def action_sell
true
end
-
+
def action_buy
true
end
diff --git a/spec/support/lib/chef/resource/cat.rb b/spec/support/lib/chef/resource/cat.rb
index 83eb9f08a3..ecca50cb53 100644
--- a/spec/support/lib/chef/resource/cat.rb
+++ b/spec/support/lib/chef/resource/cat.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.
@@ -19,15 +19,15 @@
class Chef
class Resource
class Cat < Chef::Resource
-
+
attr_accessor :action
-
+
def initialize(name, run_context=nil)
@resource_name = :cat
super
@action = "sell"
end
-
+
def pretty_kitty(arg=nil)
if arg == true or arg == false
@pretty_kitty = arg