Method: Bashly::Commands::Add#run

Defined in:
lib/bashly/commands/add.rb

#runObject



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/bashly/commands/add.rb', line 24

def run
  say "Performing git operations, this may take a while...\n" if lib_source.git?

  if args['--list']
    show_list
  else
    add_lib args['LIBRARY']
  end

  lib_source.cleanup if lib_source.git?
end