lib/rex/service_manager.rb in librex-0.0.65 vs lib/rex/service_manager.rb in librex-0.0.66

- old
+ new

@@ -1,5 +1,6 @@ +# -*- coding: binary -*- require 'singleton' require 'rex' require 'rex/service' module Rex @@ -21,11 +22,11 @@ # Calls the instance method to start a service. # def self.start(klass, *args) self.instance.start(klass, *args) end - + # # Calls the instance method to stop a service. # def self.stop(klass, *args) self.instance.stop(klass, *args) @@ -73,11 +74,11 @@ inst.extend(Rex::Service) # Re-aliases the instance. inst.alias = als - # Fire up the engines. If an error occurs an exception will be + # Fire up the engines. If an error occurs an exception will be # raised. inst.start # Alias associate and initialize reference counting self[als] = self[hals] = inst.refinit @@ -136,18 +137,18 @@ self.keys.sort.each do |sidx| list << [sidx, self[sidx]] end list.each(&block) end - + protected - # + # # Returns the alias for a given service instance. # def hardcore_alias(klass, *args) "__#{klass.name}#{args}" end - + end end