Method: Xcode::Project::Packer#pack

Defined in:
lib/xcode/project/packer.rb

#packObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/xcode/project/packer.rb', line 50

def pack
  if pack_path.exist?
    abort "#{pack_path} already exists"
  else
    build

    arguments = %W[tar -cjf #{pack_path.expand_path}]
    arguments += product_names

    Dir.chdir products_dir do
      sh *arguments
    end
  end
end