Sha256: 10c361703c8cd0e1542119e013798dab788b41260d48c81ae200805f3956d388

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bluepill-0.1.3 lib/bluepill/application/server.rb
bluepill-0.1.2 lib/bluepill/application/server.rb
bluepill-0.1.1 lib/bluepill/application/server.rb
bluepill-0.0.70 lib/bluepill/application/server.rb
bluepill-0.0.69 lib/bluepill/application/server.rb