Class: GoNative::Plugins::IOS::Release
- Inherits:
-
Object
- Object
- GoNative::Plugins::IOS::Release
- Extended by:
- DSL::Serviceable
- Defined in:
- lib/gonative/plugins/ios/release.rb
Instance Attribute Summary collapse
-
#project_root ⇒ Object
readonly
Returns the value of attribute project_root.
-
#registry_url ⇒ Object
readonly
Returns the value of attribute registry_url.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(version, scope:, registry_url:, project_root: FileUtils.pwd) ⇒ Release
constructor
A new instance of Release.
Constructor Details
#initialize(version, scope:, registry_url:, project_root: FileUtils.pwd) ⇒ Release
Returns a new instance of Release.
19 20 21 22 23 24 |
# File 'lib/gonative/plugins/ios/release.rb', line 19 def initialize(version, scope:, registry_url:, project_root: FileUtils.pwd) @version = version @scope = scope @registry_url = registry_url @project_root = File.(project_root) end |
Instance Attribute Details
#project_root ⇒ Object (readonly)
Returns the value of attribute project_root.
17 18 19 |
# File 'lib/gonative/plugins/ios/release.rb', line 17 def project_root @project_root end |
#registry_url ⇒ Object (readonly)
Returns the value of attribute registry_url.
17 18 19 |
# File 'lib/gonative/plugins/ios/release.rb', line 17 def registry_url @registry_url end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
17 18 19 |
# File 'lib/gonative/plugins/ios/release.rb', line 17 def scope @scope end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
17 18 19 |
# File 'lib/gonative/plugins/ios/release.rb', line 17 def version @version end |
Instance Method Details
#call ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/gonative/plugins/ios/release.rb', line 26 def call assert_not_published! zip_frameworks! upload_frameworks! publish_to_registry! ensure cleanup! end |