Class: Podage::Builder
- Inherits:
-
Object
- Object
- Podage::Builder
- Defined in:
- lib/podage/builders/builder.rb
Direct Known Subclasses
Instance Method Summary collapse
- #build(configuration, &block) ⇒ Object
-
#initialize(version) ⇒ Builder
constructor
A new instance of Builder.
- #platform ⇒ Object
- #target_name ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(version) ⇒ Builder
Returns a new instance of Builder.
30 31 32 33 34 |
# File 'lib/podage/builders/builder.rb', line 30 def initialize(version) @version = version end |
Instance Method Details
#build(configuration, &block) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/podage/builders/builder.rb', line 36 def build(configuration, &block) puts "Building Frameworks".green FileUtils.cd BUILD_PATH podfile = create_podfile(self.version, &block) sandbox = Pod::Sandbox.new(BUILD_PATH + "/Pods") installer = Pod::Installer.new(sandbox, podfile) installer.install! share_schemes FileUtils.cd ".." end |
#platform ⇒ Object
110 111 112 113 114 |
# File 'lib/podage/builders/builder.rb', line 110 def platform return nil end |
#target_name ⇒ Object
104 105 106 107 108 |
# File 'lib/podage/builders/builder.rb', line 104 def target_name return nil end |
#version ⇒ Object
98 99 100 101 102 |
# File 'lib/podage/builders/builder.rb', line 98 def version return @version end |