Class: PkgForge::Forge
- Inherits:
-
Object
- Object
- PkgForge::Forge
- Defined in:
- lib/pkgforge/forge.rb
Overview
Real Forge object
Instance Attribute Summary collapse
-
#build_block ⇒ Object
Returns the value of attribute build_block.
-
#deps ⇒ Object
Returns the value of attribute deps.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#license ⇒ Object
Returns the value of attribute license.
-
#name ⇒ Object
Returns the value of attribute name.
-
#org ⇒ Object
Returns the value of attribute org.
-
#patches ⇒ Object
Returns the value of attribute patches.
-
#version_block ⇒ Object
Returns the value of attribute version_block.
Instance Method Summary collapse
- #build! ⇒ Object
-
#initialize(params = {}) ⇒ Forge
constructor
A new instance of Forge.
- #push! ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(params = {}) ⇒ Forge
22 23 24 25 26 27 28 29 |
# File 'lib/pkgforge/forge.rb', line 22 def initialize(params = {}) = params @license = 'LICENSE' @deps = {} @flags = {} @patches = [] nil end |
Instance Attribute Details
#build_block ⇒ Object
Returns the value of attribute build_block.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def build_block @build_block end |
#deps ⇒ Object
Returns the value of attribute deps.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def deps @deps end |
#flags ⇒ Object
Returns the value of attribute flags.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def flags @flags end |
#license ⇒ Object
Returns the value of attribute license.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def license @license end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def name @name end |
#org ⇒ Object
Returns the value of attribute org.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def org @org end |
#patches ⇒ Object
Returns the value of attribute patches.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def patches @patches end |
#version_block ⇒ Object
Returns the value of attribute version_block.
18 19 20 |
# File 'lib/pkgforge/forge.rb', line 18 def version_block @version_block end |
Instance Method Details
#build! ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/pkgforge/forge.rb', line 32 def build! prepare_source! patch_source! prepare_deps! builder = BuildDSL.new(self) builder.instance_eval(&build_block) add_license! make_tarball! end |
#push! ⇒ Object
43 44 45 46 47 |
# File 'lib/pkgforge/forge.rb', line 43 def push! bump_revision! update_repo! upload_artifact! end |