Sha256: dc2350b03a6aefc3cb6edfb587878c813c5d07fe9ae2478e4f0691cb52989034

Contents?: true

Size: 745 Bytes

Versions: 5

Compression:

Stored size: 745 Bytes

Contents

#!/usr/bin/env ruby

require 'clamp'
require File.join(File.dirname(__FILE__), '..', 'lib', 'synx')

Clamp do

  parameter "xcodeproj", "Path to the xcodeproj", :attribute_name => :xcodeproj_path
  option ["--prune", "-p"], :flag, "remove source files and image resources that are not referenced by the the xcode project"
  option "--no-default-exclusions", :flag, "doesn't use the default exclusions of /Libraries, /Frameworks, and /Products"
  option ["--exclusion", "-e"], "EXCLUSION", "ignore an Xcode group while syncing", :multivalued => true

  def execute
    project = Synx::Project.open(xcodeproj_path)
    project.sync(:prune => prune?, :no_default_exclusions => no_default_exclusions?, :group_exclusions => exclusion_list)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
synx-0.0.51 bin/synx
synx-0.0.5 bin/synx
synx-0.0.4 bin/synx
synx-0.0.3 bin/synx
synx-0.0.2 bin/synx