lib/renuo/cli.rb in renuo-cli-1.4.0 vs lib/renuo/cli.rb in renuo-cli-1.4.1

- old
+ new

@@ -11,10 +11,11 @@ require 'renuo/cli/app/create_heroku_app' require 'renuo/cli/app/create_new_logins' require 'renuo/cli/app/release_project.rb' require 'renuo/cli/app/fetch_emails.rb' require 'renuo/cli/app/heroku_users.rb' +require 'renuo/cli/app/setup_uptimerobot' module Renuo class CLI def start require 'commander/import' @@ -164,9 +165,21 @@ 'Adds the user alessandro.rodi@renuo.ch to all the Heroku projects' c.example 'renuo heroku-users remove alessandro.rodi@renuo.ch', 'Removes the user alessandro.rodi@renuo.ch from all the Heroku projects' c.action do|args| HerokuUsers.new.run(args) + end + end + + command 'setup-uptimerobot' do |c| + c.syntax = 'renuo setup-uptimerobot' + c.summary = 'Sets up uptimerobot for the given project' + c.description = "The uptimerobot configuration is mandatory for most projects. "\ + "This command sets everything up and pauses the monitoring directly. Once the app is ready,"\ + " the monitoring should get started." + c.example 'renuo setup-uptimerobot https://redmine.ch', 'Configures redmine monitoring on uptimerobot' + c.action do|args| + SetupUptimerobot.new(args).run end end end end end