Class: Xcodeproj::Project::Object::PBXVariantGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/synx/pbx_variant_group.rb

Instance Method Summary collapse

Instance Method Details

#sync(group) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/synx/pbx_variant_group.rb', line 8

def sync(group)
  ensure_internal_consistency(group)
  folder_path = children.first.real_path.parent
  work_destination_pathname = parent.work_pathname
  if folder_path.exist?
    FileUtils.mv(folder_path, work_destination_pathname.realpath)
  end
end