minicron 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -30
- data/lib/minicron/cli.rb +1 -1
- data/lib/minicron/constants.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60fca4e316aa04aa9af9e988a25aac6f52bee585
|
4
|
+
data.tar.gz: 77a60882f414259f240a49d9b780c7b82a162ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af6cc620890e0883e5c8541f19a39694d964f0bfddddd384a9c3ec123548e4f3b815390212079efd68b6ccca692b7ca636682ae3b0f9fe8bf2dc006b031c4a6
|
7
|
+
data.tar.gz: 8732f37eba792dee23ac23f12543301dd231ab3d67f912c51679fd1f77a6b9ef98af0a80d9530fd93c03b3cf7e683e2f51dc16c30112dc8a90767b3ffac7d458
|
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
minicron
|
2
2
|
=======
|
3
3
|
|
4
|
-
[![Build Status](http://img.shields.io/travis/jamesrwhite/minicron.svg)](http://travis-ci.org/jamesrwhite/minicron) [![Coverage Status](http://img.shields.io/coveralls/jamesrwhite/minicron.svg)](https://coveralls.io/r/jamesrwhite/minicron?branch=master) [![Code Climate](http://img.shields.io/codeclimate/github/jamesrwhite/minicron.svg)](https://codeclimate.com/github/jamesrwhite/minicron) [![Dependency Status](http://img.shields.io/gemnasium/jamesrwhite/minicron.svg)](https://gemnasium.com/jamesrwhite/minicron) [![Inline docs](http://inch-pages.github.io/github/jamesrwhite/minicron.png)](http://inch-pages.github.io/github/jamesrwhite/minicron)
|
4
|
+
[![Gem Version](http://img.shields.io/gem/v/minicron.svg)](https://rubygems.org/gems/minicron) [![Build Status](http://img.shields.io/travis/jamesrwhite/minicron.svg)](http://travis-ci.org/jamesrwhite/minicron) [![Coverage Status](http://img.shields.io/coveralls/jamesrwhite/minicron.svg)](https://coveralls.io/r/jamesrwhite/minicron?branch=master) [![Code Climate](http://img.shields.io/codeclimate/github/jamesrwhite/minicron.svg)](https://codeclimate.com/github/jamesrwhite/minicron) [![Dependency Status](http://img.shields.io/gemnasium/jamesrwhite/minicron.svg)](https://gemnasium.com/jamesrwhite/minicron) [![Inline docs](http://inch-pages.github.io/github/jamesrwhite/minicron.png)](http://inch-pages.github.io/github/jamesrwhite/minicron)
|
5
5
|
|
6
6
|
minicron aims to complement ````cron```` by making it easier to manage and monitor cron jobs, it can largely be thought of as two components that interact together, the CLI and the Hub. The CLI is what is installed on your server(s) and executes your cron command and reports the status back to the Hub. The Hub is the central point where data from one or many instances of the CLI are is recieved and stored in a database. The Hub also provides a web interface to the data and makes it easy to manage your cron jobs.
|
7
7
|
|
8
8
|
- [Background](https://github.com/jamesrwhite/minicron/blob/master/README.md#background)
|
9
9
|
- [Goals](https://github.com/jamesrwhite/minicron/blob/master/README.md#features)
|
10
10
|
- [Features](https://github.com/jamesrwhite/minicron/blob/master/README.md#goals)
|
11
|
-
- [Installation](https://github.com/jamesrwhite/minicron/blob/master/README.md#installation)
|
12
11
|
- [Requirements](https://github.com/jamesrwhite/minicron/blob/master/README.md#requirements)
|
12
|
+
- [Installation](https://github.com/jamesrwhite/minicron/blob/master/README.md#installation)
|
13
13
|
- [Usage](https://github.com/jamesrwhite/minicron/blob/master/README.md#usage)
|
14
14
|
- [Documentation](https://github.com/jamesrwhite/minicron/blob/master/README.md#documentation)
|
15
15
|
- [Versioning](https://github.com/jamesrwhite/minicron/blob/master/README.md#versioning)
|
@@ -45,51 +45,48 @@ Features
|
|
45
45
|
- SMS ([using Twilio](https://www.twilio.com))
|
46
46
|
- [PagerDuty](www.pagerduty.com)
|
47
47
|
|
48
|
-
Lots more is planned for the
|
48
|
+
Lots more is planned for the future, see issues tagged [feature](https://github.com/jamesrwhite/minicron/issues?labels=feature&milestone=&page=1&state=open).
|
49
49
|
|
50
|
-
|
50
|
+
Requirements
|
51
51
|
-------------
|
52
52
|
|
53
|
-
|
53
|
+
#### Ruby
|
54
|
+
- MRI
|
55
|
+
- 1.9.3 and above (tested on 1.9.3, 2.0.0, 2.1.0)
|
56
|
+
- <del>Rubinius</del>
|
57
|
+
- <del>Travis builds are run on the latest release</del> [*awaiting bug fix*](https://github.com/rubinius/rubinius/issues/2944)
|
54
58
|
|
55
|
-
####
|
59
|
+
#### Database
|
56
60
|
|
57
|
-
|
61
|
+
- MySQL
|
62
|
+
- Support for PostgreSQL and SQlite is planned in the future
|
58
63
|
|
59
|
-
####
|
64
|
+
#### Web Server / Reverse Proxy
|
60
65
|
|
61
|
-
|
66
|
+
If you want to run minicron behind a web server or proxy it needs to support the web socket protocol. nginx for example supports web sockets from version 1.3.13 and up.
|
62
67
|
|
63
|
-
####
|
68
|
+
#### Browser
|
64
69
|
|
65
|
-
|
70
|
+
I have been testing the web interface in the latest versions of Chrome, Firefox and Safari. I'm currently unsure of how it functions in the various of Internet Explorer but in theory it should support IE9+
|
66
71
|
|
67
|
-
|
72
|
+
#### OS
|
68
73
|
|
69
|
-
|
74
|
+
Should run on any linux/bsd based OS that the above ruby versions run on.
|
70
75
|
|
71
|
-
|
76
|
+
Installation
|
72
77
|
-------------
|
73
78
|
|
74
|
-
|
75
|
-
- MRI
|
76
|
-
- 1.9.3 and above (tested on 1.9.3, 2.0.0, 2.1.0)
|
77
|
-
- <del>Rubinius</del>
|
78
|
-
- <del>Travis builds are run on the latest release</del> [*awaiting bug fix*](https://github.com/rubinius/rubinius/issues/2944)
|
79
|
-
- JRuby
|
80
|
-
- As yet untested
|
79
|
+
minicron is currently under heavy development and as such I would not recommend that you use this in production yet but I encourage you to give it a try in a non critical environment and help me improve it.
|
81
80
|
|
81
|
+
To install the latest release (currently 0.1.1) you can ````gem install minicron````.
|
82
82
|
|
83
|
-
#### Database
|
84
|
-
- MySQL
|
85
|
-
- Support for PostgreSQL and SQlite is planned in the future
|
83
|
+
#### Database Setup
|
86
84
|
|
87
|
-
|
88
|
-
- I have been testing the web interface in the latest versions of Chrome, Firefox and Safari. I'm currently unsure of how it functions in the various of Internet Explorer but in theory it should support IE9+
|
85
|
+
Set your database configuration options in ````/etc/minicron.toml````, you can use the [default.config.toml](https://github.com/jamesrwhite/minicron/blob/master/default.config.toml) as a guide on what options are configurable. You can then ````minicron db setup````
|
89
86
|
|
90
|
-
|
91
|
-
|
92
|
-
|
87
|
+
> **WARNING** this will drop any existing tables of the same name in the configured database and create new ones
|
88
|
+
|
89
|
+
or set it up manually using the [schema dump provided](https://github.com/jamesrwhite/minicron/blob/master/lib/minicron/hub/db/schema.sql).
|
93
90
|
|
94
91
|
Usage
|
95
92
|
-----
|
@@ -168,7 +165,7 @@ Areas that I would love some help with:
|
|
168
165
|
- Validation and error handling improvements
|
169
166
|
- Documentation improvements. Find something confusing or unexpected, let me know and I'll add or improve documentation for it!
|
170
167
|
- Look for '[TODO:](https://github.com/jamesrwhite/minicron/search?q=TODO%3A)' notices littered around the code, I'm trying to convert them all to issues but there are a lot..
|
171
|
-
- Code refactoring, I had to have
|
168
|
+
- Code refactoring, I had a reasonably tight deadline to have the main concept done by so some parts are a bit rushed
|
172
169
|
- UI improvements
|
173
170
|
|
174
171
|
Support
|
data/lib/minicron/cli.rb
CHANGED
@@ -257,7 +257,7 @@ module Minicron
|
|
257
257
|
Minicron::Hub::App.setup_db
|
258
258
|
|
259
259
|
# Tell activerecord where the db folder is, it assumes it is in db/
|
260
|
-
Sinatra::ActiveRecordTasks.db_dir = '
|
260
|
+
Sinatra::ActiveRecordTasks.db_dir = Minicron::HUB_PATH + '/db'
|
261
261
|
|
262
262
|
# Adjust the task name
|
263
263
|
task = args.first == 'setup' ? 'load' : args.first
|
data/lib/minicron/constants.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minicron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -436,9 +436,8 @@ dependencies:
|
|
436
436
|
- - ~>
|
437
437
|
- !ruby/object:Gem::Version
|
438
438
|
version: '0.8'
|
439
|
-
description: "\n
|
440
|
-
|
441
|
-
README on GitHub.\n "
|
439
|
+
description: "\n minicron is system that aims to make it easier to manage and monitor
|
440
|
+
cron jobs.\n\n For more info see the project README on GitHub.\n "
|
442
441
|
email:
|
443
442
|
- dev.jameswhite+minicron@gmail.com
|
444
443
|
executables:
|