Class: Capwatch::Fund::Config::Remote

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

Constant Summary collapse

FILE_NAME =
"~/.capwatch.remote"

Instance Method Summary collapse

Instance Method Details

#fetch(remote_url) ⇒ Object



59
60
61
# File 'lib/capwatch/fund/config.rb', line 59

def fetch(remote_url)
  open(remote_url).read
end

#get_dataObject



63
64
65
66
# File 'lib/capwatch/fund/config.rb', line 63

def get_data
  remote_file_url = File.open(File.expand_path(FILE_NAME)).read.strip
  fetch(remote_file_url)
end