Class: Edployify::Preferences

Inherits:
Object
  • Object
show all
Defined in:
lib/edployify/preferences.rb

Constant Summary collapse

PREFERENCES_FILE =
File.join(Dir.home, '.edployify.cfg')

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.getObject



15
16
17
# File 'lib/edployify/preferences.rb', line 15

def get
	instance.get
end

Instance Method Details

#configureObject



32
33
34
# File 'lib/edployify/preferences.rb', line 32

def configure
	menu
end

#getObject



27
28
29
30
# File 'lib/edployify/preferences.rb', line 27

def get
	initial_configure if preferences.empty?
	preferences
end

#request_preset(action) ⇒ Object



36
37
38
39
# File 'lib/edployify/preferences.rb', line 36

def request_preset(action)
	list_presets
	ask_preset(action)
end