Sha256: db9deb66677cad7e8db18beb879c5317750773d85ba3e041b8a739e14ebbe26b

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 Bytes

Contents

# -*- encoding: utf-8 -*-

module EventedBluepill
  module Application
    module ServerMethods

      def status
        self.processes.collect do |process|
          "#{process.name} #{process.state}"
        end.join("\n")
      end

      def restart
        self.socket = EventedBluepill::Socket.new(name, base_dir).client
        socket.send("restart\n", 0)
      end

      def stop
        self.socket = EventedBluepill::Socket.new(name, base_dir).client
        socket.send("stop\n", 0)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evented_bluepill-0.0.52 lib/evented_bluepill/application/server.rb
evented_bluepill-0.0.51 lib/evented_bluepill/application/server.rb
evented_bluepill-0.0.50 lib/evented_bluepill/application/server.rb