summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-13 14:10:32 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-13 15:43:39 -0700
commit55d9aae70f9f135bf0d110623da2fdffc34c58e9 (patch)
treea01da02f1b29ab0d59b292d80fd2896f1ed64205
parent87ebd29a5632d4a2598b12b99ecc9d2ee2b4586f (diff)
downloadchef-55d9aae70f9f135bf0d110623da2fdffc34c58e9.tar.gz
Remove the "path" attribute from "execute" resource which has never been backed by any providers.
-rw-r--r--lib/chef/resource/execute.rb9
-rw-r--r--spec/support/shared/unit/execute_resource.rb7
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index 7c4fa48c0a..80ee16c5ec 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -35,7 +35,6 @@ class Chef
@cwd = nil
@environment = nil
@group = nil
- @path = nil
@returns = 0
@timeout = nil
@user = nil
@@ -93,14 +92,6 @@ class Chef
)
end
- def path(arg=nil)
- set_or_return(
- :path,
- arg,
- :kind_of => [ Array ]
- )
- end
-
def returns(arg=nil)
set_or_return(
:returns,
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb
index 609e77ad63..298e0c5baf 100644
--- a/spec/support/shared/unit/execute_resource.rb
+++ b/spec/support/shared/unit/execute_resource.rb
@@ -76,11 +76,6 @@ shared_examples_for "an execute resource" do
@resource.group.should eql(1)
end
- it "should accept an array for the execution path" do
- @resource.path ["woot"]
- @resource.path.should eql(["woot"])
- end
-
it "should accept an integer for the return code" do
@resource.returns 1
@resource.returns.should eql(1)
@@ -112,7 +107,6 @@ shared_examples_for "an execute resource" do
@resource.cwd("/tmp/")
@resource.environment({ :one => :two })
@resource.group("legos")
- @resource.path(["/var/local/"])
@resource.returns(1)
@resource.user("root")
end
@@ -122,4 +116,3 @@ shared_examples_for "an execute resource" do
end
end
end
-