def add(paths='.',options={})
      arr_opts = []

      arr_opts << '--all' if options[:all]
      arr_opts << '--force' if options[:force]

      arr_opts << '--'

      arr_opts << paths

      arr_opts.flatten!

      command('add', arr_opts)
    end
def add(paths='.',options={})
      arr_opts = []

      arr_opts << '--all' if options[:all]
      arr_opts << '--force' if options[:force]

      arr_opts << '--'

      arr_opts << paths

      arr_opts.flatten!

      command('add', arr_opts)
    end
updates the repository index using the working directory content

    lib.add('path/to/file')
    lib.add(['path/to/file1','path/to/file2'])
    lib.add(:all => true)

 options:
   :all => true
   :force => true

 @param [String,Array] paths files paths to be added to the repository
 @param [Hash] options