Class: Projit::Config
- Inherits:
-
Object
- Object
- Projit::Config
- Defined in:
- lib/projit/config.rb
Instance Method Summary collapse
- #dropbox_configured? ⇒ Boolean
- #dropbox_home ⇒ Object
- #projects_home ⇒ Object
- #read_config(config) ⇒ Object
Instance Method Details
#dropbox_configured? ⇒ Boolean
14 15 16 |
# File 'lib/projit/config.rb', line 14 def dropbox_configured? !dropbox_home.nil? end |
#dropbox_home ⇒ Object
18 19 20 |
# File 'lib/projit/config.rb', line 18 def dropbox_home config_dir(read_config(:dropbox_home) || defaults[:dropbox_home]) end |
#projects_home ⇒ Object
5 6 7 |
# File 'lib/projit/config.rb', line 5 def projects_home config_dir(read_config(:projects_home) || defaults[:projects_home]) end |
#read_config(config) ⇒ Object
9 10 11 12 |
# File 'lib/projit/config.rb', line 9 def read_config(config) return nil unless read_config_file read_config_file[config.to_s] end |