Sha256: 8e4e8a23d7663673dc1c53a3e73cf372542438232d4a836e061dfa52e88cba20

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

module Bluepill
  module Application
    module ServerMethods
      
      def status
        self.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

2 entries across 2 versions & 1 rubygems

Version Path
bluepill-0.0.46 lib/bluepill/application/server.rb
bluepill-0.0.45 lib/bluepill/application/server.rb