Class: Phoenx::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/phoenx/entities/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Project

Returns a new instance of Project.

Yields:

  • (_self)

Yield Parameters:



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/phoenx/entities/project.rb', line 14

def initialize
	@configurations = []
	@config_files = {}
	@targets = []
	@pre_install_scripts = []
	@post_install_scripts = []
	@support_files = []
	@excluded_support_files = []
	@deterministic_project = false
	yield self
end

Instance Attribute Details

#config_filesObject (readonly)

Returns the value of attribute config_files.



5
6
7
# File 'lib/phoenx/entities/project.rb', line 5

def config_files
  @config_files
end

#configurationsObject (readonly)

Returns the value of attribute configurations.



4
5
6
# File 'lib/phoenx/entities/project.rb', line 4

def configurations
  @configurations
end

#deterministic_projectObject

Returns the value of attribute deterministic_project.



12
13
14
# File 'lib/phoenx/entities/project.rb', line 12

def deterministic_project
  @deterministic_project
end

#excluded_support_filesObject

Returns the value of attribute excluded_support_files.



10
11
12
# File 'lib/phoenx/entities/project.rb', line 10

def excluded_support_files
  @excluded_support_files
end

#post_install_scriptsObject

Returns the value of attribute post_install_scripts.



7
8
9
# File 'lib/phoenx/entities/project.rb', line 7

def post_install_scripts
  @post_install_scripts
end

#pre_install_scriptsObject

Returns the value of attribute pre_install_scripts.



6
7
8
# File 'lib/phoenx/entities/project.rb', line 6

def pre_install_scripts
  @pre_install_scripts
end

#project_nameObject

Returns the value of attribute project_name.



8
9
10
# File 'lib/phoenx/entities/project.rb', line 8

def project_name
  @project_name
end

#support_filesObject

Returns the value of attribute support_files.



9
10
11
# File 'lib/phoenx/entities/project.rb', line 9

def support_files
  @support_files
end

#targetsObject (readonly)

Returns the value of attribute targets.



11
12
13
# File 'lib/phoenx/entities/project.rb', line 11

def targets
  @targets
end

Instance Method Details

#configuration(name, parent) ⇒ Object



26
27
28
# File 'lib/phoenx/entities/project.rb', line 26

def configuration(name, parent)
	@configurations << Configuration.new(name, parent)
end

#project_file_nameObject



34
35
36
# File 'lib/phoenx/entities/project.rb', line 34

def project_file_name
	return @project_name + "." + XCODE_PROJECT_EXTENSION
end

#target(name, type, platform, version, &block) ⇒ Object



30
31
32
# File 'lib/phoenx/entities/project.rb', line 30

def target(name, type, platform, version, &block)
	targets << Phoenx::TestableTarget.new(name, type, platform, version, &block)
end