From c9d496f0c5c8d3f9b768b979d47697b48518aa17 Mon Sep 17 00:00:00 2001 From: jtimberman Date: Sat, 15 Jan 2011 21:46:38 -0800 Subject: [PATCH] COOK-318 use ::File instead of File in recipes --- metadata.json | 4 ++-- metadata.rb | 2 +- recipes/default.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata.json b/metadata.json index a0b36d1..e4c5b2d 100644 --- a/metadata.json +++ b/metadata.json @@ -26,7 +26,7 @@ ] }, "license": "Apache 2.0", - "version": "0.3.2", + "version": "0.3.3", "maintainer": "Opscode, Inc.", "suggestions": { }, @@ -39,4 +39,4 @@ }, "description": "Installs activemq and sets it up as a runit service", "long_description": "= DESCRIPTION:\n\nInstalls activemq and sets up a runit service.\n\n= REQUIREMENTS:\n\nTested on Ubuntu 9.04.\n\nOpscode cookbooks:\n\n* java\n* runit\n\n= ATTRIBUTES:\n\n* activemq[:mirror] - download URL up to the apache/activemq/apache-activemq directory.\n* activemq[:version] - version to install.\n\n= USAGE:\n\nInclude the default recipe on systems where you want to run activemq. At this time the cookbook doesn't use any custom configuration for activemq.\n\n= LICENSE AND AUTHOR:\n\nAuthor:: Joshua Timberman ()\n\nCopyright:: 2009, Opscode, Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n" - } \ No newline at end of file + } diff --git a/metadata.rb b/metadata.rb index c09ad8c..5ed2673 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ license "Apache 2.0" description "Installs activemq and sets it up as a runit service" long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.3.2" +version "0.3.3" recipe "activemq", "Installs ActiveMQ from source and sets it up as a runit service" diff --git a/recipes/default.rb b/recipes/default.rb index da2eed9..e6a8b03 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -23,7 +23,7 @@ version = node[:activemq][:version] mirror = node[:activemq][:mirror] -unless File.exists?("/opt/apache-activemq-#{version}/bin/activemq") +unless ::File.exists?("/opt/apache-activemq-#{version}/bin/activemq") remote_file "/tmp/apache-activemq-#{version}-bin.tar.gz" do source "#{mirror}/apache/activemq/apache-activemq/#{version}/apache-activemq-#{version}-bin.tar.gz" mode "0644"