Sha256: 597b2e9eb2d57ae3f73e74e8ea767e84b875847be98e51635232800c1f8aabf6

Contents?: true

Size: 408 Bytes

Versions: 10

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

require 'mkit/version'

class MkitController < MKIt::Server
  get '/mkit/version' do
    "MKIt version #{MKIt::VERSION}\n"
  end

  put '/mkit/proxy/restart' do
    MKIt::HAProxy.restart
  end

  put '/mkit/proxy/start' do
    MKIt::HAProxy.start
  end

  put '/mkit/proxy/stop' do
    MKIt::HAProxy.stop
  end

  get '/mkit/proxy/status' do
    MKIt::HAProxy.status
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mkit-0.7.2 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.7.1 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.7.0 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.6.3 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.6.2 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.6.1 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.6.0 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.5.0 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.4.3 lib/mkit/app/controllers/mkit_controller.rb
mkit-0.4.2 lib/mkit/app/controllers/mkit_controller.rb