Module: CSD::Application::Graphics

Extended by:
Default
Defined in:
lib/csd/application/graphics.rb,
lib/csd/application/graphics/base.rb

Overview

This module updates graphics card drivers for the system.

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Methods included from Default

actions, default_options, description, human, instance, name, options, scopes

Class Method Details

.instanceObject

This method will check which system we’re on and initialize the correct sub-module. Currently we only support Ubuntu.



18
19
20
21
22
23
24
25
# File 'lib/csd/application/graphics.rb', line 18

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