spec/recipe/fakerecipe.rb in capistrano-spec-0.5.0 vs spec/recipe/fakerecipe.rb in capistrano-spec-0.5.1
- old
+ new
@@ -3,12 +3,16 @@
module Fakerecipe
def self.load_into(configuration)
configuration.load do
before "fake:before_this_execute_thing", "fake:thing"
before "fake:before_this_also_execute_thing", "fake:thing"
+ before "outside:undefined_task", "fake:thing"
+
after "fake:after_this_execute_thing", "fake:thing"
after "fake:after_this_also_execute_thing", "fake:thing"
+ after "outside:undefined_task", "fake:thing"
+
namespace :fake do
desc "thing and run fake manifests"
task :thing do
set :bar, "baz"
run('do some stuff')
@@ -22,13 +26,19 @@
end
desc "You get the picture..."
task :before_this_also_execute_thing do
#
end
+ task :before_this_dont_execute_thing do
+ #
+ end
task :after_this_execute_thing do
#
end
task :after_this_also_execute_thing do
+ #
+ end
+ task :after_this_dont_execute_thing do
#
end
end
end
end