Module: Dsu::Support::CommandHookable::ClassMethods

Defined in:
lib/dsu/support/command_hookable.rb

Instance Method Summary collapse

Instance Method Details

#display_dsu_headerObject



28
29
30
31
# File 'lib/dsu/support/command_hookable.rb', line 28

def display_dsu_header
  puts apply_theme("Dsu v#{Dsu::VERSION}", theme_color: color_theme.dsu_header)
  puts
end

#start(args = ARGV, options = {}) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/dsu/support/command_hookable.rb', line 19

def start(args = ARGV, options = {})
  display_dsu_header unless suspend_header?(args, options)
  stderror = Services::StderrRedirectorService.call do
    super
  end
  display_errors_if(stderror)
  display_dsu_footer
end