class Rudisco::CLI::Presentation::GitClone
Attributes
exception[R]
@return [Exception, NilClass]
path[R]
@return [String, NilClass]
success[R]
@return [TrueClass, FalseClass]
Public Class Methods
new(**params)
click to toggle source
@param [HASH] params @option params [String, NilClass] :path @option params [TrueClass, FalseClass] :success @option params [Exception, NilClass] :exception
# File lib/rudisco/cli/presentation/git_clone.rb, line 11 def initialize(**params) @success = params[:success] @path = params[:path] @exception = params[:exception] end
Public Instance Methods
git_clone_done()
click to toggle source
# File lib/rudisco/cli/presentation/git_clone.rb, line 27 def git_clone_done # no-doc header title: 'Gem was cloned!', width: 80, align: 'center', bold: true aligned "Path to folder #{path}", bold: true, width: 80, align: 'center' end
git_clone_failed()
click to toggle source
# File lib/rudisco/cli/presentation/git_clone.rb, line 34 def git_clone_failed # no-doc header title: 'Gem clone failed.', width: 80, align: 'center', bold: true aligned "Error message: #{exception.message}", bold: true, width: 80, align: 'center' end
show()
click to toggle source
# File lib/rudisco/cli/presentation/git_clone.rb, line 17 def show # no-doc report message: '', complete: '' do if success git_clone_done else git_clone_failed end end # report end