lib/tap/file_task.rb in bahuvrihi-tap-0.10.7 vs lib/tap/file_task.rb in bahuvrihi-tap-0.10.8
- old
+ new
@@ -19,11 +19,11 @@
# and to create directories with mkdir.
#
# # this file will be backed up and restored
# File.open("file.txt", "w") {|f| f << "original content"}
#
- # t = FileTask.new do |task|
+ # t = FileTask.intern do |task|
# task.mkdir("some/dir") # marked for rollback
# task.prepare("file.txt", "path/to/file.txt") # marked for rollback
#
# File.open("file.txt", "w") {|f| f << "new content"}
# File.touch("path/to/file.txt")
@@ -64,10 +64,10 @@
# A flag indicating whether or not to rollback changes on
# error, defaults to the class rollback_on_error
config :rollback_on_error, true, &c.switch # rollback changes on error
- def initialize(config={}, name=nil, app=App.instance, &task_block)
+ def initialize(config={}, name=nil, app=App.instance)
super
@backed_up_files = {}
@added_files = []
end