Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change simple to use crashy script

  • Loading branch information...
commit 0f86a2c3a2b87c4e8092f6790e3e7dd4a1dadd97 1 parent 4de27af
@jnewland authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  leaky_notifications.god
  2. +1 −1  scripts/crashy.rb
  3. +3 −3 simple.god
View
2  leaky_notifications.god
@@ -18,4 +18,4 @@ God.watch do |w|
end
end
-end
+end
View
2  scripts/crashy.rb
@@ -1,4 +1,4 @@
$: << File.expand_path(File.dirname(__FILE__) + "/../lib")
require 'god_test'
-GodTest.new(:crashiness => 5)
+GodTest.new(:crashiness => 5, :delay => 1)
View
6 simple.god
@@ -1,8 +1,8 @@
#The simplest possible watch
God.watch do |w|
- w.name = "stable"
- w.interval = 30.seconds
- w.start = 'ruby ' + File.dirname(__FILE__) + '/scripts/stable.rb'
+ w.name = "crashy"
+ w.interval = 1.seconds
+ w.start = 'ruby ' + File.dirname(__FILE__) + '/scripts/crashy.rb'
w.start_if do |start|
start.condition(:process_running) do |c|
Please sign in to comment.
Something went wrong with that request. Please try again.