Class: KubsCLI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/kubs_cli/configuration.rb

Overview

Used for keeping a consistent config across the entire project

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/kubs_cli/configuration.rb', line 16

def initialize
  # Values for items to be copied to
  @local_dir = Dir.home

  # values for items to be copied from
  # set to nil so that someone must set a path
  @config_files = nil
  @dotfiles = nil
  @packages = nil
  @gnome_terminal_settings = nil
  @dependencies = nil
end

Instance Attribute Details

#config_filesObject

remote files to be used



14
15
16
# File 'lib/kubs_cli/configuration.rb', line 14

def config_files
  @config_files
end

#dependenciesObject

Dependencies to install



10
11
12
# File 'lib/kubs_cli/configuration.rb', line 10

def dependencies
  @dependencies
end

#dotfilesObject

remote files to be used



14
15
16
# File 'lib/kubs_cli/configuration.rb', line 14

def dotfiles
  @dotfiles
end

#gnome_terminal_settingsObject

remote files to be used



14
15
16
# File 'lib/kubs_cli/configuration.rb', line 14

def gnome_terminal_settings
  @gnome_terminal_settings
end

#local_dirObject

local files



7
8
9
# File 'lib/kubs_cli/configuration.rb', line 7

def local_dir
  @local_dir
end

#packagesObject

Returns the value of attribute packages.



11
12
13
# File 'lib/kubs_cli/configuration.rb', line 11

def packages
  @packages
end