def add(*args)
      if args[0].instance_of?(String) || args[0].instance_of?(Array)
        self.lib.add(args[0],args[1]||{})
      else
        self.lib.add('.', args[0]||{})
      end
    end
def add(*args)
      if args[0].instance_of?(String) || args[0].instance_of?(Array)
        self.lib.add(args[0],args[1]||{})
      else
        self.lib.add('.', args[0]||{})
      end
    end
updates the repository index using the working directory content

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

 options:
   :all => true

 @param [String,Array] paths files paths to be added (optional, default='.')
 @param [Hash] options