Class: Phoenx::AbstractTarget

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

Direct Known Subclasses

TestTarget, TestableTarget

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAbstractTarget

Returns a new instance of AbstractTarget.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/phoenx/entities/target.rb', line 20

def initialize
	@dependencies = []
	@config_files = {}
	@frameworks = []
	@libraries = []
	@system_frameworks = []
	@system_libraries = []
	@pre_build_scripts = []
	@post_build_scripts = []
	@resources = []
	@excluded_resources = []
	@sources = []
	@excluded_sources = []
	@support_files = []
	@excluded_support_files = []
end

Instance Attribute Details

#config_filesObject (readonly)

Returns the value of attribute config_files.



18
19
20
# File 'lib/phoenx/entities/target.rb', line 18

def config_files
  @config_files
end

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



17
18
19
# File 'lib/phoenx/entities/target.rb', line 17

def dependencies
  @dependencies
end

#excluded_resourcesObject

Returns the value of attribute excluded_resources.



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

def excluded_resources
  @excluded_resources
end

#excluded_sourcesObject

Returns the value of attribute excluded_sources.



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

def excluded_sources
  @excluded_sources
end

#excluded_support_filesObject

Returns the value of attribute excluded_support_files.



16
17
18
# File 'lib/phoenx/entities/target.rb', line 16

def excluded_support_files
  @excluded_support_files
end

#frameworksObject

Returns the value of attribute frameworks.



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

def frameworks
  @frameworks
end

#librariesObject

Returns the value of attribute libraries.



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

def libraries
  @libraries
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#post_build_scriptsObject

Returns the value of attribute post_build_scripts.



14
15
16
# File 'lib/phoenx/entities/target.rb', line 14

def post_build_scripts
  @post_build_scripts
end

#pre_build_scriptsObject

Returns the value of attribute pre_build_scripts.



13
14
15
# File 'lib/phoenx/entities/target.rb', line 13

def pre_build_scripts
  @pre_build_scripts
end

#resourcesObject

Returns the value of attribute resources.



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

def resources
  @resources
end

#sourcesObject

Returns the value of attribute sources.



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

def sources
  @sources
end

#support_filesObject

Returns the value of attribute support_files.



15
16
17
# File 'lib/phoenx/entities/target.rb', line 15

def support_files
  @support_files
end

#system_frameworksObject

Returns the value of attribute system_frameworks.



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

def system_frameworks
  @system_frameworks
end

#system_librariesObject

Returns the value of attribute system_libraries.



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

def system_libraries
  @system_libraries
end

Instance Method Details

#dependency(target_name, embed = true, path = nil) ⇒ Object



37
38
39
# File 'lib/phoenx/entities/target.rb', line 37

def dependency(target_name, embed = true, path = nil)
	dependencies << Dependency.new(target_name, embed, path)
end