Class: Projit::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/projit/config.rb

Instance Method Summary collapse

Instance Method Details

#dropbox_configured?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/projit/config.rb', line 14

def dropbox_configured?
  !dropbox_home.nil?
end

#dropbox_homeObject



18
19
20
# File 'lib/projit/config.rb', line 18

def dropbox_home
  config_dir(read_config(:dropbox_home) || defaults[:dropbox_home])
end

#projects_homeObject



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