lib/negroku/tasks/eye.rake in negroku-2.0.0 vs lib/negroku/tasks/eye.rake in negroku-2.0.1

- old
+ new

@@ -36,12 +36,14 @@ [:start,:restart, :info, :stop].each do |cmd| desc "Calls eye's #{cmd.to_s} on the whole app" task cmd, [:mask] do |t, args| on release_roles fetch(:eye_roles) do within current_path do - mask = fetch(:application) - mask += ":#{args[:mask]}" if args[:mask] - execute :eye, cmd, mask + mask = fetch(:application) + mask += ":#{args[:mask]}" if args[:mask] + execute :eye, cmd, mask + + Rake::Task["eye:#{cmd}"].reenable end end end end end