stubby 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stubby/extensions/smtp.rb +7 -11
- metadata +1 -1
@@ -12,22 +12,18 @@ module Extensions
|
|
12
12
|
HTTPI.post("http://#{STUBBY_MASTER}:9000/stubs/transient/activate.json",
|
13
13
|
options: MultiJson.dump(smtp_stub), key: "_smtp")
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
http_port: 9001,
|
21
|
-
daemon: false
|
22
|
-
rescue
|
23
|
-
puts $!
|
24
|
-
end
|
25
|
-
end
|
15
|
+
MailCatcher.run! smtp_ip: STUBBY_MASTER,
|
16
|
+
smtp_port: 25,
|
17
|
+
http_ip: STUBBY_MASTER,
|
18
|
+
http_port: 9001,
|
19
|
+
daemon: false
|
26
20
|
}
|
27
21
|
|
28
22
|
trap("INT", important: true){
|
29
23
|
stop!
|
30
24
|
}
|
25
|
+
|
26
|
+
sleep
|
31
27
|
end
|
32
28
|
|
33
29
|
def smtp_stub
|