Method: Externals::Ext#unfreeze

Defined in:
lib/externals/ext.rb

#unfreeze(args, options) ⇒ Object



404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/externals/ext.rb', line 404

def unfreeze args, options
  project = subproject_by_name_or_path(args[0])

  raise "No such project named #{args[0]}" unless project

  section = configuration[project.path]

  unless section[:revision]
    puts "Uhh... #{project.name} wasn't frozen, so I can't unfreeze it."
    exit
  end

  section.rm_setting :revision
  configuration.write '.externals'
  reload_configuration

  subproject_by_name_or_path(args[0]).up
end