Class: Capwatch::Fund::Config::Local

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

Constant Summary collapse

FILE_NAME =
"~/.capwatch"

Instance Method Summary collapse

Instance Method Details

#create_demo_file!Object



78
79
80
# File 'lib/capwatch/fund/config.rb', line 78

def create_demo_file!
  Demo.new.create_demo_config unless File.exist?(File.expand_path((Local::FILE_NAME)))
end

#get_dataObject



73
74
75
76
# File 'lib/capwatch/fund/config.rb', line 73

def get_data
  create_demo_file!
  File.open(File.expand_path(FILE_NAME)).read
end