Class: CBin::Library
- Inherits:
-
Object
- Object
- CBin::Library
- Defined in:
- lib/cocoapods-bb-bin/helpers/library.rb,
lib/cocoapods-bb-bin/helpers/library_builder.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#headers_path ⇒ Object
readonly
Returns the value of attribute headers_path.
-
#name_path ⇒ Object
readonly
Returns the value of attribute name_path.
-
#resources_path ⇒ Object
readonly
Returns the value of attribute resources_path.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
-
#versions_path ⇒ Object
readonly
Returns the value of attribute versions_path.
Instance Method Summary collapse
- #delete_resources ⇒ Object
-
#initialize(name, platform, version) ⇒ Library
constructor
A new instance of Library.
- #make ⇒ Object
Constructor Details
#initialize(name, platform, version) ⇒ Library
Returns a new instance of Library.
11 12 13 14 15 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 11 def initialize(name, platform, version) @name = name @platform = platform @version = version end |
Instance Attribute Details
#headers_path ⇒ Object (readonly)
Returns the value of attribute headers_path.
5 6 7 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 5 def headers_path @headers_path end |
#name_path ⇒ Object (readonly)
Returns the value of attribute name_path.
9 10 11 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 9 def name_path @name_path end |
#resources_path ⇒ Object (readonly)
Returns the value of attribute resources_path.
6 7 8 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 6 def resources_path @resources_path end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
7 8 9 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 7 def root_path @root_path end |
#versions_path ⇒ Object (readonly)
Returns the value of attribute versions_path.
8 9 10 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 8 def versions_path @versions_path end |
Instance Method Details
#delete_resources ⇒ Object
24 25 26 27 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 24 def delete_resources Pathname.new(@resources_path).rmtree (Pathname.new(@fwk_path) + Pathname.new('Resources')).delete end |
#make ⇒ Object
17 18 19 20 21 22 |
# File 'lib/cocoapods-bb-bin/helpers/library.rb', line 17 def make make_root make_library make_headers make_resources end |