Module: Zimt

Defined in:
lib/zimt.rb,
lib/zimt/cli.rb,
lib/zimt/pbxproj.rb,
lib/zimt/version.rb,
lib/zimt/sprinkle.rb

Defined Under Namespace

Classes: CLI, PBXHash, PBXProj, Sprinkle

Constant Summary collapse

VERSION =

See semver.org/

"0.0.5"

Class Method Summary collapse

Class Method Details

.pbxprojObject



25
26
27
28
# File 'lib/zimt.rb', line 25

def self.pbxproj
  path = Pathname.new(File.join(self.xcodeproj, 'project.pbxproj'))
  @pbxproj ||= PBXProj.new(path)
end

.xcodeprojObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/zimt.rb', line 14

def self.xcodeproj
  begin
    @xcodeproj ||= find_xcodeproj
    raise "Could not locate .xcodeproj" unless @xcodeproj
  rescue => e
    puts e
    exit
  end
  Pathname.new(@xcodeproj)
end

.zimts_dirObject



30
31
32
# File 'lib/zimt.rb', line 30

def self.zimts_dir
  Pathname.new(File.expand_path(File.join(self.xcodeproj, '..', 'zimts')))
end