Method: Profile#add_shell

Defined in:
lib/bashman.rb

#add_shell(verbose = false) ⇒ Object



101
102
103
104
105
106
107
108
109
110
111
# File 'lib/bashman.rb', line 101

def add_shell(verbose = false)
    @shell = Profile::Shell.new
    puts "Gathering shell components" if verbose
    puts "Found shell #{@shell.shell}" if verbose
    puts "Getting files to save" if verbose
    @shell.get_dotfiles
    if verbose
        puts "Found shell files to save:"
        @shell.dotfiles.each {|d| puts "  #{d}"}
    end
end