Permalink
Browse files

Fixing gem

  • Loading branch information...
1 parent 4e8db99 commit 60595bae4bfe4dfe7f3dd7c719858086f476c01f Winton Welsh committed Aug 17, 2008
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'cookbook'
- s.version = '1.0.1'
+ s.version = '1.0.2'
s.date = '2008-08-16'
s.summary = "Turns a fresh Debian server into an autonomous Nginx/Rails/PHP stack using purely Capistrano"
@@ -1,6 +1,6 @@
# Require helpers and recipes
-require File.expand_path('cookbook_helpers.rb', File.dirname(__FILE__))
+require File.expand_path('cookbook_helpers.rb', File.dirname(__FILE__))
Dir[ File.expand_path('recipes/*.rb', File.dirname(__FILE__))].each do |f|
require f
end
@@ -50,7 +50,7 @@ def upload_from_erb(destination, bind=nil, options={})
template = File.basename destination
template = template[1..-1] if template[0..0] == '.'
folder = options[:folder] ? options[:folder] + '/' : ''
- template = File.expand_path("config/#{folder}#{options[:name]||template}.erb", File.dirname(__FILE__))
+ template = File.expand_path("templates/#{folder}#{options[:name]||template}.erb", File.dirname(__FILE__))
template = File.read template
sudo "touch #{destination}"
sudo "chown #{user} #{destination}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 60595ba

Please sign in to comment.