lib/solaris/patch.rb
def download!(type, opts={})
      raise ArgumentError, "Patch #{self.inspect} requires a major number to download" unless @major
      raise ArgumentError, "Patch #{self.inspect} requires a minor number to download" unless @minor
      raise ArgumentError, "Unknown type #{type.inspect}" unless URL[type]
      url = URL[type] % self.to_s
      opts = {
        :agent => 'Wget/1.10.2', # default user agent, required by Oracle
      }.merge(opts)
      Solaris::Util.download!(url, opts)
    end
# Download this patch or readme from Oracle.
# For the options hash argument see Solaris::Util.download!
Download this patch or readme from Oracle.
For the options hash argument see Solaris::Util.download!
Download this patch or readme from Oracle . For the options hash argument see Solaris :: Util . download!
def download!(type, opts={})
      raise ArgumentError, "Patch #{self.inspect} requires a major number to download" unless @major
      raise ArgumentError, "Patch #{self.inspect} requires a minor number to download" unless @minor
      raise ArgumentError, "Unknown type #{type.inspect}" unless URL[type]
      url = URL[type] % self.to_s
      opts = {
        :agent => 'Wget/1.10.2', 
      }.merge(opts)
      Solaris::Util.download!(url, opts)
    end
def download! ( type , opts = { } ) raise ArgumentError , "Patch #{self.inspect} requires a major number to download" unless @major raise ArgumentError , "Patch #{self.inspect} requires a minor number to download" unless @minor raise ArgumentError , "Unknown type #{type.inspect}" unless URL [ type ] url = URL [ type ] % self . to_s opts = { :agent => 'Wget/1.10.2' , } . merge ( opts ) Solaris :: Util . download! ( url , opts ) end
Download this patch or readme from Oracle.
Download this patch or readme from Oracle .
# default user agent, required by Oracle
type
opts