Sha256: 8b07f1bbebf238c383dac048f698f27db88286bce7ca19236d0514e5a415ea67

Contents?: true

Size: 768 Bytes

Versions: 12

Compression:

Stored size: 768 Bytes

Contents

# -*- encoding: UTF-8 -*-
require 'csd/application/default'
require 'csd/application/graphics/error'
require 'csd/application/graphics/base'

module CSD
  module Application
    # This is the Application Module to update the graphics card drivers.
    #
    module Graphics
      class << self

        include CSD::Application::Default

        # This method will check which system we're on and initialize the correct sub-module.
        # Currently we only support Ubuntu.
        #
        def instance
          if Gem::Platform.local.ubuntu?
            UI.debug "#{self}.instance finishes the system check"
            Base.new
          else
            raise 'Sorry, currently only Ubuntu is supported.'
          end
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
csd-0.4.3 lib/csd/application/graphics.rb
csd-0.4.2 lib/csd/application/graphics.rb
csd-0.4.1 lib/csd/application/graphics.rb
csd-0.4.0 lib/csd/application/graphics.rb
csd-0.3.7 lib/csd/application/graphics.rb
csd-0.3.6 lib/csd/application/graphics.rb
csd-0.3.5 lib/csd/application/graphics.rb
csd-0.3.4 lib/csd/application/graphics.rb
csd-0.3.3 lib/csd/application/graphics.rb
csd-0.3.2 lib/csd/application/graphics.rb
csd-0.3.1 lib/csd/application/graphics.rb
csd-0.3.0 lib/csd/application/graphics.rb