lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.15 vs lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.16
- old
+ new
@@ -40,9 +40,13 @@
def cancelled?
options[:cancelled] || false
end
# Give us a template to work with on the resource
# Make sure this template is moved to the tmp directory as well
+ #
+ # TODO: Change this method to store the template files for later
+ # copying to prevent unnecessary copying and tons of directories
+ # everywhere
def template(file, opts={})
raise TemplateNotFound.new("no template given") unless file
raise TemplateNotFound.new("template cannot be found #{file}") unless ::File.file?(file)
unless opts[:just_copy]
options.merge!({:content => "template(\"#{::File.basename(file)}\")"})
\ No newline at end of file