Class: ConfCtl::Settings
- Inherits:
-
Object
- Object
- ConfCtl::Settings
- Includes:
- Singleton
- Defined in:
- lib/confctl/settings.rb
Instance Method Summary collapse
- #build_generations ⇒ Object
- #core_swpin_channels ⇒ Object
- #core_swpin_pins ⇒ Object
- #host_generations ⇒ Object
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
- #list_columns ⇒ Object
- #max_jobs ⇒ Object
- #nix_paths ⇒ Object
Constructor Details
#initialize ⇒ Settings
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_generations ⇒ Object
31 32 33 |
# File 'lib/confctl/settings.rb', line 31 def build_generations read_settings { |s| s['buildGenerations'] } end |
#core_swpin_channels ⇒ Object
23 24 25 |
# File 'lib/confctl/settings.rb', line 23 def core_swpin_channels read_settings { |s| s['swpins']['core']['channels'] } end |
#core_swpin_pins ⇒ Object
27 28 29 |
# File 'lib/confctl/settings.rb', line 27 def core_swpin_pins read_settings { |s| s['swpins']['core']['pins'] } end |
#host_generations ⇒ Object
35 36 37 |
# File 'lib/confctl/settings.rb', line 35 def host_generations read_settings { |s| s['hostGenerations'] } end |
#list_columns ⇒ Object
11 12 13 |
# File 'lib/confctl/settings.rb', line 11 def list_columns read_settings { |s| s['list']['columns'] } end |
#max_jobs ⇒ Object
15 16 17 |
# File 'lib/confctl/settings.rb', line 15 def max_jobs read_settings { |s| s['nix']['maxJobs'] } end |
#nix_paths ⇒ Object
19 20 21 |
# File 'lib/confctl/settings.rb', line 19 def nix_paths read_settings { |s| s['nix']['nixPath'] } end |