summaryrefslogtreecommitdiff
path: root/example-repository
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2009-01-30 00:23:37 -0800
committerAdam Jacob <adam@hjksolutions.com>2009-01-30 00:23:37 -0800
commitf8dfae4b4bf82bf7c61ad23d19d52c7a9d1ae19a (patch)
tree41a510b3e1e32cab54da9965c3901e008b26f97c /example-repository
parent90557e73b22fb0ff5c5443c1beef837b4510c344 (diff)
downloadchef-f8dfae4b4bf82bf7c61ad23d19d52c7a9d1ae19a.tar.gz
Adding testing cookbook for CHEF-56, minor fix to service init command
Diffstat (limited to 'example-repository')
-rw-r--r--example-repository/cookbooks/CHEF-56/recipes/default.rb39
1 files changed, 39 insertions, 0 deletions
diff --git a/example-repository/cookbooks/CHEF-56/recipes/default.rb b/example-repository/cookbooks/CHEF-56/recipes/default.rb
new file mode 100644
index 0000000000..f279f2f079
--- /dev/null
+++ b/example-repository/cookbooks/CHEF-56/recipes/default.rb
@@ -0,0 +1,39 @@
+#
+# Cookbook Name:: CHEF-56
+# Recipe:: default
+#
+# Copyright 2009, Example Com
+#
+# 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.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+service "vncserver" do
+ supports :status => true, :reload => true
+ action :enable
+end
+
+service "vncserver" do
+ action :start
+end
+
+service "vncserver" do
+ action :restart
+end
+
+service "vncserver" do
+ action :stop
+end
+
+service "vncserver" do
+ action :disable
+end