Class: NameDisplay

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

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

Instance Method Details

#run(args, options) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/renuo/cli/app/name_display.rb', line 8

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