Sha256: 8728ee44685bd35923e172677543f021eb1856f6bb2f61f41cafa1d087a49d65
Contents?: true
Size: 1012 Bytes
Versions: 2
Compression:
Stored size: 1012 Bytes
Contents
module Xcodeproj class Project module Object class PBXVariantGroup # Need to retain *.lproj files on the system def sync(group) ensure_internal_consistency(group) file = files.first if lproj_as_group? FileUtils.mv(file.real_path, work_pathname) Synx::Tabber.puts file.real_path.basename.to_s.green else parent_folder_path = children.first.real_path.parent work_destination_pathname = parent.work_pathname if parent_folder_path.exist? FileUtils.mv(parent_folder_path, work_destination_pathname.realpath) end Synx::Tabber.puts (parent_folder_path.basename.to_s + "/").green Synx::Tabber.increase Synx::Tabber.puts file.real_path.basename.to_s.green Synx::Tabber.decrease end end def lproj_as_group? parent.basename =~ /.+\.lproj$/ end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
synx-0.0.54 | lib/synx/xcodeproj_ext/project/object/pbx_variant_group.rb |
synx-0.0.53 | lib/synx/xcodeproj_ext/project/object/pbx_variant_group.rb |