Class: Renuo::Cli::Commands::CreateHerokuApp

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/commands/create_heroku_app.rb

Constant Summary collapse

ADMIN_EMAIL =
"[email protected]"

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/renuo/cli/commands/create_heroku_app.rb', line 14

def run(args)
  project_name = args[0]
  abort(">> Project name must be between 2 and 22 characters.") unless project_name&.length&.between?(2, 22)

  say "# Commands to setup your Heroku application\n".colorize :green
  ENVIRONMENTS.each  { |env| print_environment_commands(env, project_name) }
  print_pipelines_commands(project_name)
end