Class: Xcode::Project
- Inherits:
-
Object
show all
- Defined in:
- lib/xcode/project.rb,
lib/xcode/project/config.rb,
lib/xcode/project/packer.rb,
lib/xcode/project/tagger.rb,
lib/xcode/project/version.rb,
lib/xcode/project/build_number.rb,
lib/xcode/project/plist_changer.rb,
lib/xcode/project/config/decomment.rb,
lib/xcode/project/config/array_node.rb,
lib/xcode/project/config/io_scanner.rb,
lib/xcode/project/config/object_node.rb
Defined Under Namespace
Classes: BuildNumber, Config, Packer, PlistChanger, Tagger, Version
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(path) ⇒ Project
Returns a new instance of Project.
11
12
13
|
# File 'lib/xcode/project.rb', line 11
def initialize(path)
@path = Pathname(path)
end
|
Instance Attribute Details
#configuration ⇒ Object
24
25
26
|
# File 'lib/xcode/project.rb', line 24
def configuration
@configuration ||= 'Release'
end
|
#path ⇒ Object
Returns the value of attribute path.
10
11
12
|
# File 'lib/xcode/project.rb', line 10
def path
@path
end
|
Instance Method Details
#build_number ⇒ Object
32
33
34
|
# File 'lib/xcode/project.rb', line 32
def build_number
BuildNumber.new
end
|
#config ⇒ Object
36
37
38
|
# File 'lib/xcode/project.rb', line 36
def config
Config.new(path)
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/xcode/project.rb', line 15
def name
path.basename(path.extname).to_s
end
|
#packer ⇒ Object
40
41
42
|
# File 'lib/xcode/project.rb', line 40
def packer
Packer.new(self)
end
|
#tagger ⇒ Object
44
45
46
|
# File 'lib/xcode/project.rb', line 44
def tagger
Tagger.new(self)
end
|
#variables ⇒ Object
19
20
21
|
# File 'lib/xcode/project.rb', line 19
def variables
@variables ||= {}
end
|
#version ⇒ Object
28
29
30
|
# File 'lib/xcode/project.rb', line 28
def version
Version.new
end
|