Method: Cnvrg::Project#fetch_project
- Defined in:
- lib/cnvrg/project.rb
#fetch_project ⇒ Object
648 649 650 651 652 653 654 655 656 |
# File 'lib/cnvrg/project.rb', line 648 def fetch_project resp = Cnvrg::API.request("users/#{@owner}/projects/#{@slug}/get_project", "GET") res = JSON.parse(resp['result']) rescue nil return if res.blank? config = self.get_config config[:is_git] = res['git'] config[:project_name] = res['title'] self.set_config(config) end |