class Renuo::Cli::Commands::DisplayName
Constants
- HEROKU_APP_NAME
- HEROKU_CLI
- RENUO_CLI
- SLIDES
- WELCOME_MESSAGE
Public Instance Methods
Source
# 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
Private Instance Methods
Source
# File lib/renuo/cli/commands/display_name.rb, line 36 def display_name(name) text_message = [WELCOME_MESSAGE, name, "🥳🔥"].compact.join(" ") run_heroku_command(text_message) end
Source
# File lib/renuo/cli/commands/display_name.rb, line 41 def run_heroku_command(text_message) rails_command = "\"#{RENUO_CLI}['#{text_message}']\"" run_command([HEROKU_CLI, rails_command, HEROKU_APP_NAME].join(" ")) end