lib/magic_recipes.rb in magic_recipes-0.1.3 vs lib/magic_recipes.rb in magic_recipes-0.1.4
- old
+ new
@@ -59,10 +59,11 @@
ssh_options[:forward_agent] = true
def template(from, to)
erb = File.read(File.expand_path("../magic_recipes/templates/#{from}", __FILE__))
- put ERB.new(erb).result(binding), to
+ # put ERB.new(erb).result(binding), to
+ scp ERB.new(erb).result(binding), to
end
def set_default(name, *args, &block)
set(name, *args, &block) unless exists?(name)
end
\ No newline at end of file