Method: Cnvrg::Project#update_is_new_branch

Defined in:
lib/cnvrg/project.rb

#update_is_new_branch(new_branch) ⇒ Object



302
303
304
305
306
# File 'lib/cnvrg/project.rb', line 302

def update_is_new_branch(new_branch)
  config = YAML.load_file(@working_dir + "/.cnvrg/config.yml")
  config[:new_branch] = new_branch
  File.open(@working_dir + "/.cnvrg/config.yml", "w+") { |f| f.write config.to_yaml }
end