Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
exe
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ecman

EasyCron as Code.

Installation

Add this line to your application's Gemfile:

gem 'ecman'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ecman

Usage

export EASYCRON_TOKEN=...
ecman export ecman.rb
vi ecman.rb
ecman export ecman.rb
ecman apply ecman.rb --dry-run
ecman apply ecman.rb

Help

Commands:
  ecman apply FILE      # apply
  ecman export [FILE]   # export
  ecman help [COMMAND]  # Describe available commands or one specific command
  ecman version         # show version

Options:
  [--token=TOKEN]
                           # Default: df6cf51f673b2bd91ce19f893df0a049
  [--target=TARGET]
  [--color], [--no-color]
                           # Default: true
  [--debug], [--no-debug]

DSL example

cron_job "example.com" do
  cron_expression "0 0 * * *"
  url "http://example.com"
  email_me 0
  log_output_length 0
end
cron_job "www.example.com" do
  cron_expression "0 0 * * *"
  url "http://www.example.com"
  email_me 0
  log_output_length 0
end

Similar tools

About

EasyCron as Code.

Resources

License

Packages

No packages published