cog 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cog/mixins/uses_templates.rb +6 -1
- data/lib/cog_version.rb +1 -1
- metadata +3 -3
@@ -62,7 +62,12 @@ module Cog
|
|
62
62
|
File.join Config.for_project.app_dir, target
|
63
63
|
end
|
64
64
|
FileUtils.mkpath File.dirname(target) unless File.exists? target
|
65
|
-
scratch =
|
65
|
+
scratch = case target_type.to_s
|
66
|
+
when /cog/i
|
67
|
+
File.join Config.for_project.cog_dir, "#{opt[:target]}.scratch"
|
68
|
+
when /app/i
|
69
|
+
File.join Config.for_project.app_dir, "#{opt[:target]}.scratch"
|
70
|
+
end
|
66
71
|
File.open(scratch, 'w') {|file| file.write t.result(b)}
|
67
72
|
unless same? target, scratch
|
68
73
|
puts "Generated #{target}"
|
data/lib/cog_version.rb
CHANGED
metadata
CHANGED