class Bundler::Audit::Database

def update!(options={})

Other tags:
    Since: - 0.8.0

Returns:
  • (true, nil) -

Options Hash: (**options)
  • :quiet (Boolean) --

Parameters:
  • options (Hash) --
def update!(options={})
  if git?
    Dir.chdir(@path) do
      command = %w(git pull)
      command << '--quiet' if options[:quiet]
      command << 'origin' << 'master'
      unless system(*command)
        raise(UpdateFailed,"failed to update #{@path.inspect}")
      end
      return true
    end
  end
end