Class: ConfCtl::Settings

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

Instance Method Summary collapse

Constructor Details

#initializeSettings

Returns a new instance of Settings.



7
8
9
# File 'lib/confctl/settings.rb', line 7

def initialize
  @settings = nil
end

Instance Method Details

#build_generationsObject



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

def build_generations
  read_settings { |s| s['buildGenerations'] }
end

#core_swpin_channelsObject



23
24
25
# File 'lib/confctl/settings.rb', line 23

def core_swpin_channels
  read_settings { |s| s['swpins']['core']['channels'] }
end

#core_swpin_pinsObject



27
28
29
# File 'lib/confctl/settings.rb', line 27

def core_swpin_pins
  read_settings { |s| s['swpins']['core']['pins'] }
end

#host_generationsObject



35
36
37
# File 'lib/confctl/settings.rb', line 35

def host_generations
  read_settings { |s| s['hostGenerations'] }
end

#list_columnsObject



11
12
13
# File 'lib/confctl/settings.rb', line 11

def list_columns
  read_settings { |s| s['list']['columns'] }
end

#max_jobsObject



15
16
17
# File 'lib/confctl/settings.rb', line 15

def max_jobs
  read_settings { |s| s['nix']['maxJobs'] }
end

#nix_pathsObject



19
20
21
# File 'lib/confctl/settings.rb', line 19

def nix_paths
  read_settings { |s| s['nix']['nixPath'] }
end