Browse Source

Fix code style

MSP-11124

Fix comment style and order methods.
Luke Imhoff 5 years ago
parent
commit
7a5ce19735
No account linked to committer's email address
1 changed files with 13 additions and 31 deletions
  1. 13
    31
      lib/msf/core/database_event.rb

+ 13
- 31
lib/msf/core/database_event.rb View File

@@ -1,52 +1,34 @@
1
-###
2
-#
3 1
 # Events that can occur in the host/service database.
4
-#
5
-###
6 2
 module Msf::DatabaseEvent
7
-  #
8
-  # Called when an existing host's state changes
9
-  #
10
-  def on_db_host_state(host, ostate)
11
-  end
12
-
13
-  #
14
-  # Called when an existing service's state changes
15
-  #
16
-  def on_db_service_state(host, port, ostate)
3
+  # Called when a new client is added to the database.  The client
4
+  # parameter is of type Client.
5
+  def on_db_client(client)
17 6
   end
18 7
 
19
-  #
20 8
   # Called when a new host is added to the database.  The host parameter is
21 9
   # of type Host.
22
-  #
23 10
   def on_db_host(host)
24 11
   end
25 12
 
26
-  #
27
-  # Called when a new client is added to the database.  The client
28
-  # parameter is of type Client.
29
-  #
30
-  def on_db_client(client)
13
+  # Called when an existing host's state changes
14
+  def on_db_host_state(host, ostate)
15
+  end
16
+
17
+  # Called when a new reference is created.
18
+  def on_db_ref(ref)
31 19
   end
32 20
 
33
-  #
34 21
   # Called when a new service is added to the database.  The service
35 22
   # parameter is of type Service.
36
-  #
37 23
   def on_db_service(service)
38 24
   end
39 25
 
40
-  #
26
+  # Called when an existing service's state changes
27
+  def on_db_service_state(host, port, ostate)
28
+  end
29
+
41 30
   # Called when an applicable vulnerability is found for a service.  The vuln
42 31
   # parameter is of type Vuln.
43
-  #
44 32
   def on_db_vuln(vuln)
45 33
   end
46
-
47
-  #
48
-  # Called when a new reference is created.
49
-  #
50
-  def on_db_ref(ref)
51
-  end
52 34
 end

Loading…
Cancel
Save