lib/vedeu/distributed/server.rb in vedeu-0.6.20 vs lib/vedeu/distributed/server.rb in vedeu-0.6.21

- old
+ new

@@ -85,10 +85,13 @@ Process.pid end # Restart the DRb server. # + # @example + # Vedeu.drb_restart + # # @return [void] def restart log('Attempting to restart') return not_enabled unless Vedeu::Configuration.drb? @@ -126,10 +129,13 @@ Vedeu::Terminal.restore_screen end # Start the DRb server. # + # @example + # Vedeu.drb_start + # # @return [Vedeu::Distributed::Server] def start log('Attempting to start') return not_enabled unless Vedeu::Configuration.drb? @@ -146,10 +152,13 @@ end end # Fetch the status of the DRb server. # + # @example + # Vedeu.drb_status + # # @return [Symbol] def status log('Fetching status') return not_enabled unless Vedeu::Configuration.drb? @@ -167,10 +176,13 @@ end end # Stop the DRb server. # + # @example + # Vedeu.drb_stop + # # @return [void] def stop log('Attempting to stop') return not_enabled unless Vedeu::Configuration.drb? @@ -222,7 +234,18 @@ end end # Server end # Distributed + + # @!method drb_restart + # @see Vedeu::Distributed::Server#restart + # @!method drb_start + # @see Vedeu::Distributed::Server#start + # @!method drb_status + # @see Vedeu::Distributed::Server#status + # @!method drb_stop + # @see Vedeu::Distributed::Server#stop + def_delegators Vedeu::Distributed::Server, :drb_restart, :drb_start, + :drb_status, :drb_stop end # Vedeu