Sha256: 0b9d8cd2bd0443a1b82ef8cb61280dcb0160e3fed973660f8188b8f52dad451e

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

class PodsController < MKIt::Server

  get '/services/:service_id/pods' do
    "Not implemented\n"
  end

  get '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  put '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  delete '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  post '/services/:service_id/pods' do
    xx = "no file"
    if params[:file]
      tempfile = params[:file][:tempfile]
      xx= YAML.load(tempfile.read)
      puts xx
    end
    JSON.pretty_generate(JSON.parse(xx.to_json))
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mkit-0.4.1 lib/mkit/app/controllers/pods_controller.rb
mkit-0.4.0 lib/mkit/app/controllers/pods_controller.rb
mkit-0.3.0 lib/mkit/app/controllers/pods_controller.rb
mkit-0.2.0 lib/mkit/app/controllers/pods_controller.rb