lib/sprinkle/actors/local.rb in lachlan-sprinkle-0.0.14 vs lib/sprinkle/actors/local.rb in lachlan-sprinkle-0.0.15
- old
+ new
@@ -24,8 +24,15 @@
return false if $?.to_i != 0
end
return true
end
+ def transfer(name, source, destination, roles, recursive = true, suppress_and_return_failures = false)
+ if recursive
+ flags = "-R "
+ end
+
+ system "cp #{flags}#{source} #{destination}"
+ end
end
end
end