Sha256: 4212795fc339fc78651592965a81f488b5dd1bc24d8ae705d18ab43800d401c9

Contents?: true

Size: 501 Bytes

Versions: 32

Compression:

Stored size: 501 Bytes

Contents

# -*- encoding: utf-8 -*-
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

32 entries across 32 versions & 6 rubygems

Version Path
bluepill-0.0.57 lib/bluepill/application/server.rb
bluepill-0.0.56 lib/bluepill/application/server.rb
bluepill-0.0.55 lib/bluepill/application/server.rb
bluepill-0.0.54 lib/bluepill/application/server.rb
bluepill-0.0.53 lib/bluepill/application/server.rb
bluepill-0.0.52 lib/bluepill/application/server.rb
ryansch-bluepill-0.0.53 lib/bluepill/application/server.rb
bluepill-0.0.51 lib/bluepill/application/server.rb
bluepill-0.0.50 lib/bluepill/application/server.rb
bluepill-0.0.49 lib/bluepill/application/server.rb
bluepill-0.0.48 lib/bluepill/application/server.rb
bluepill-0.0.47 lib/bluepill/application/server.rb