Project

eye-http

0.0
No commit activity in last 3 years
No release in over 3 years
Http interface for the Eye gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
>= 0
< 2.14

Runtime

>= 0
~> 0.10
~> 0.6
= 0.2.3
 Project Readme

Eye::Http

Http interface for the Eye gem.

Installation

gem install eye
gem install eye-http

Gemfile

group 'eye' do
  gem 'eye'
  gem 'eye-http'
end

Usage

Example config:

require 'eye-http'

Eye.config do
  http :enable => true, :host => "127.0.0.1", :port => 12345
end

Eye.application :app do
  process :process do
    start_command "sleep 100"
    daemonize true
    pid_file "/tmp/1.pid"
  end
end

Run:

bundle exec eye l examples/1.eye

Api:

curl http://127.0.0.1:12345/api/info?filter=all
curl -X PUT http://127.0.0.1:12345/api/restart?filter=all