class Bundler::Audit::Database
def self.update!(options={})
- Use {#update!} instead.
Other tags:
- Since: - 0.3.0
Other tags:
- Note: -
Raises:
-
(ArgumentError)
-
Returns:
-
(Boolean, nil)
-
Options Hash:
(**options)
-
:quiet
(Boolean
) --
Parameters:
-
options
(Hash
) --
def self.update!(options={}) raise "Invalid option(s)" unless (options.keys - [:quiet]).empty? if File.directory?(DEFAULT_PATH) begin new(DEFAULT_PATH).update!(options) rescue UpdateFailed then false end else begin download(options.merge(path: DEFAULT_PATH)) rescue DownloadFailed then false end end end