lib/renuo/cli.rb in renuo-cli-1.1.0 vs lib/renuo/cli.rb in renuo-cli-1.2.0
- old
+ new
@@ -5,13 +5,15 @@
require 'renuo/cli/app/local_storage'
require 'renuo/cli/app/list_large_git_files'
require 'renuo/cli/app/generate_password'
require 'renuo/cli/app/upgrade_laptop.rb'
require 'renuo/cli/app/create_aws_project'
+require 'renuo/cli/app/create_heroku_app'
require 'renuo/cli/app/create_new_logins'
-require 'renuo/cli/app/application_setup_auto_config'
require 'renuo/cli/app/release_project.rb'
+require 'renuo/cli/app/fetch_emails.rb'
+require 'renuo/cli/app/heroku_users.rb'
module Renuo
class CLI
def start
require 'commander/import'
@@ -108,27 +110,49 @@
c.action do |_args, _options|
CreateAwsProject.new.run
end
end
- command 'application-setup-auto-config' do |c|
- c.syntax = 'renuo application-setup-auto-config'
- c.summary = 'Sets up the application setup using the default config'
- c.description = 'Generates a phrase of random 0-9a-zA-Z characters. Choose a substring of it as a new password.'
- c.example 'renuo application-setup-auto-config', 'applies the default config'
- c.action do
- ApplicationSetupAutoConfig.new.run
- end
- end
-
command 'release' do |c|
c.syntax = 'renuo release'
c.summary = 'Deploy a project to master in one command.'
c.description = 'Deploys a project to master as either a Major, Minor, Patch or Custom release.'
c.example 'renuo release my-project minor', 'release a minor release of my-project'
c.example 'renuo release my-project custom 2.5.0', 'release my-project as release 2.5.0'
c.action do|args|
ReleaseProject.new.run(args)
+ end
+ end
+
+ command 'create-heroku-app' do |c|
+ c.syntax = 'renuo create-heroku-app'
+ c.summary = 'Generates the script necessary to setup an application on Heroku.'
+ c.description = 'Generates the script necessary to setup an application on Heroku.'
+ c.example 'renuo create-heroku-app hello', 'generates the command to create hello on Heroku'
+ c.action do|args|
+ CreateHerokuApp.new.run(args)
+ end
+ end
+
+ command 'fetch-emails' do |c|
+ c.syntax = 'renuo fetch-emails'
+ c.summary = 'Retrieves all renuo employees email addresses'
+ c.description = 'Retrieves all renuo employees email addresses. One per line.'
+ c.action do|args|
+ FetchEmails.new.run(args)
+ end
+ end
+
+ command 'heroku-users' do |c|
+ c.syntax = 'renuo heroku-users add/remove emailaddress'
+ c.summary = 'Prints a list of commands to add or remove an email address from all Heroku projects'
+ c.description = 'Useful when a new person is hired or a person quits.'
+ c.example 'renuo heroku-users add alessandro.rodi@renuo.ch',
+ '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
end
end
end