cog 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cog/generator.rb +1 -1
- data/lib/cog/version.rb +1 -1
- metadata +3 -3
data/lib/cog/generator.rb
CHANGED
@@ -86,7 +86,7 @@ module Cog
|
|
86
86
|
def stamp(template_path, destination, opt={})
|
87
87
|
t = get_template template_path, :absolute => opt[:absolute_template_path]
|
88
88
|
b = opt[:binding] || binding
|
89
|
-
dest = opt[:absolute_destination] ?
|
89
|
+
dest = opt[:absolute_destination] ? destination : File.join(Config.instance.project_source_path, destination)
|
90
90
|
FileUtils.mkpath File.dirname(dest) unless File.exists? dest
|
91
91
|
scratch = "#{dest}.scratch"
|
92
92
|
File.open(scratch, 'w') {|file| file.write t.result(b)}
|
data/lib/cog/version.rb
CHANGED
metadata
CHANGED