Skip to content

alainravet/cron-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage : in your ruby code

# create a user
    msg = CronIO::User.create(name, email, password)
        => "Account created. Please confirm your email address by clicking the link provided in an email we will send you shortly."
  or
    # raises a CronIO::UsernameTakenError if ..
    # raises a CronIO::EmailTakenError    if ..
    # raises a CronIO::InvalidEmailError if ..
    # raises a CronIO::UserCreationError if ..


# retrieve the details of ALL cron.io job
    scheduled_crons = CronIo::Cron.list(username, password)
  or
    # raises a CronIO::CredentialsError if ..

# retrieve the details of 1 cron.io job
    scheduleD_cron = CronIo::Cron.get(username, password, id)
  or
    # raises a CronIO::CredentialsError if ..
    # raises a CronIO::CronNotFoundError if ..


# create a Cron.io scheduled job :
    new_cron = CronIO::Cron.create(username, pwd, name, url, schedule)
  or
    # raises a CronIO::CredentialsError  if ..
    # raises a CronIO::QuotaReachedError if ..

# delete 1 cron.io job :
    CronIo::Cron.delete(username, password, id)
  or
    # raises a CronIO::CredentialsError if ..
    # raises a CronIO::CronNotFoundError if ..


# update 1 cron.io job :
    CronIo::Cron.update(username, password, id, :name => 'new name')
    CronIo::Cron.update(username, password, id, :url => 'http://new_url', :schedule => '1 * * * * *')
  or
    # raises a CronIO::CredentialsError if ..
    # raises a CronIO::CronNotFoundError if ..
    # raises a CronIO::UserUpdateError



-----

Usage : in the terminal

  $ gem install cron-io
  $ cron-io
    >

About

Ruby wrapper for cron.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages