Class: GvcsFx::Global

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/global.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGlobal

Returns a new instance of Global.



31
32
33
# File 'lib/global.rb', line 31

def initialize
  @logger = Tlogger.new
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



30
31
32
# File 'lib/global.rb', line 30

def logger
  @logger
end

Instance Method Details

#storage(reload = true) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/global.rb', line 35

def storage(reload = true)
  if @store.nil? or reload
    @store = GvcsFx::DataStore::DefaultDataStore.load
  end

  @store
end

#vcsObject



43
44
45
46
47
48
49
# File 'lib/global.rb', line 43

def vcs
  if @vcs.nil?
    @vcs = Gvcs::Vcs.new
  end

  @vcs
end