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-rwgps-0.0.63 lib/bluepill/application/server.rb
bluepill-rwgps-0.0.62 lib/bluepill/application/server.rb
bluepill-rwgps-0.0.61 lib/bluepill/application/server.rb
cloud66-bluepill-0.0.64 lib/bluepill/application/server.rb
bluepill-rwgps-0.0.60 lib/bluepill/application/server.rb
bluepill-0.0.66 lib/bluepill/application/server.rb
bluepill-0.0.65 lib/bluepill/application/server.rb
bluepill-0.0.64 lib/bluepill/application/server.rb
cloud66-bluepill-0.0.63 lib/bluepill/application/server.rb
bluepill-0.0.63 lib/bluepill/application/server.rb
cloud66-bluepill-0.0.62 lib/bluepill/application/server.rb
bluepill-0.0.62 lib/bluepill/application/server.rb
bluepill-0.0.61 lib/bluepill/application/server.rb
kostya-bluepill-0.0.60.3 lib/bluepill/application/server.rb
kostya-bluepill-0.0.60.2 lib/bluepill/application/server.rb
kostya-bluepill-0.0.60.1 lib/bluepill/application/server.rb
skalar-bluepill-0.0.60.1 lib/bluepill/application/server.rb
bluepill-0.0.60 lib/bluepill/application/server.rb
bluepill-0.0.59 lib/bluepill/application/server.rb
bluepill-0.0.58 lib/bluepill/application/server.rb