Skip to content

Commit

Permalink
COOK-318 use ::File instead of File in recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jan 16, 2011
1 parent 096b2ea commit c9d496f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]
},
"license": "Apache 2.0",
"version": "0.3.2",
"version": "0.3.3",
"maintainer": "Opscode, Inc.",
"suggestions": {
},
Expand All @@ -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 (<[email protected]>)\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"
}
}
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c9d496f

Please sign in to comment.