Sha256: b69c0ce9dad02f904fff5ac39a6077337f4321e8adfaba0ab99fdf6a3fe493c6

Contents?: true

Size: 380 Bytes

Versions: 14

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module JabberAdmin
  module Commands
    # Restart ejabberd service gracefully.
    #
    # @see https://bit.ly/2G7YEwd
    class Restart
      # Pass the correct data to the given callable.
      #
      # @param callable [Proc, #call] the callable to call
      def self.call(callable)
        callable.call('restart')
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jabber_admin-1.3.4 lib/jabber_admin/commands/restart.rb
jabber_admin-1.3.3 lib/jabber_admin/commands/restart.rb
jabber_admin-1.3.2 lib/jabber_admin/commands/restart.rb
jabber_admin-1.3.1 lib/jabber_admin/commands/restart.rb
jabber_admin-1.3.0 lib/jabber_admin/commands/restart.rb
jabber_admin-1.2.0 lib/jabber_admin/commands/restart.rb
jabber_admin-1.1.0 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.5 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.4 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.3 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.2 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.1 lib/jabber_admin/commands/restart.rb
jabber_admin-1.0.0 lib/jabber_admin/commands/restart.rb
jabber_admin-0.2.0 lib/jabber_admin/commands/restart.rb