Class: Renuo::Cli::Commands::DisplayName

Inherits:
Object
  • Object
show all
Includes:
CommandHelper
Defined in:
lib/renuo/cli/commands/display_name.rb

Constant Summary collapse

HEROKU_APP_NAME =
"-a renuo-dashboard-main"
HEROKU_CLI =
"heroku run"
RENUO_CLI =
"rails renuo:welcome"
SLIDES =
"https://docs.google.com/presentation/d/1mPhQjArZnlUWUa2ik5R9IlGmdCKCwc2_H8Qq-AWgV-A/edit"
WELCOME_MESSAGE =
"Welcome to Renuo"

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

Instance Method Details

#run(args, options) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/renuo/cli/commands/display_name.rb', line 25

def run(args, options)
  return open_path(SLIDES) if options.monitor
  return display_name(nil) if options.delete
  return say("empty argument") if args.empty?
  return run_heroku_command(args.join(" ")) if options.override

  display_name(args.join(" "))
end