Class: CBin::Library::Builder
- Inherits:
-
Object
- Object
- CBin::Library::Builder
- Includes:
- Pod
- Defined in:
- lib/cocoapods-imy-bin/helpers/library_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(spec, file_accessor, platform, source_dir, framework_path) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Pod
Constructor Details
#initialize(spec, file_accessor, platform, source_dir, framework_path) ⇒ Builder
Returns a new instance of Builder.
14 15 16 17 18 19 20 21 22 |
# File 'lib/cocoapods-imy-bin/helpers/library_builder.rb', line 14 def initialize(spec, file_accessor, platform, source_dir,framework_path) @spec = spec @source_dir = source_dir @file_accessor = file_accessor @platform = platform @framework = framework_path @source_files = "#{@source_dir}/#{library.name_path}" @source_zip_file = "#{@source_files}.zip" end |
Instance Method Details
#build ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cocoapods-imy-bin/helpers/library_builder.rb', line 24 def build UI.section("Building static library #{@spec}") do clean_source_dir copy_headers copy_library copy_resources cp_to_source_dir end end |