lib/larynx/command.rb in larynx-0.1.2 vs lib/larynx/command.rb in larynx-0.1.3
- old
+ new
@@ -24,9 +24,17 @@
end
def interrupted?
@interrupted
end
+
+ def setup
+ fire_callback :before
+ end
+
+ def finalize
+ fire_callback :after
+ end
end
class CallCommand < Command
def name
"#{@command}#{" #{@params}" if @params}"