Class: Edployify::Preferences
- Inherits:
-
Object
- Object
- Edployify::Preferences
- 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
.get ⇒ Object
15 16 17 |
# File 'lib/edployify/preferences.rb', line 15 def get instance.get end |
Instance Method Details
#configure ⇒ Object
32 33 34 |
# File 'lib/edployify/preferences.rb', line 32 def configure end |
#get ⇒ Object
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 |