Class: GoNative::Plugins::IOS::Release
- Inherits:
-
Object
- Object
- GoNative::Plugins::IOS::Release
- Extended by:
- DSL::Serviceable
- Defined in:
- lib/gonative/plugins/ios/release.rb
Constant Summary collapse
- GONATIVE_SOURCE_NAME =
'gonative-specs'
Instance Attribute Summary collapse
-
#plugin_name ⇒ Object
readonly
Returns the value of attribute plugin_name.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#spec_name ⇒ Object
readonly
Returns the value of attribute spec_name.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(spec_name) ⇒ Release
constructor
A new instance of Release.
Constructor Details
#initialize(spec_name) ⇒ Release
18 19 20 21 22 |
# File 'lib/gonative/plugins/ios/release.rb', line 18 def initialize(spec_name) @spec_name = spec_name @spec = Pod::Specification.from_file(spec_name) @plugin_name = File.basename(spec_name, '.podspec') end |
Instance Attribute Details
#plugin_name ⇒ Object (readonly)
Returns the value of attribute plugin_name.
16 17 18 |
# File 'lib/gonative/plugins/ios/release.rb', line 16 def plugin_name @plugin_name end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
16 17 18 |
# File 'lib/gonative/plugins/ios/release.rb', line 16 def spec @spec end |
#spec_name ⇒ Object (readonly)
Returns the value of attribute spec_name.
16 17 18 |
# File 'lib/gonative/plugins/ios/release.rb', line 16 def spec_name @spec_name end |
Instance Method Details
#call ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/gonative/plugins/ios/release.rb', line 24 def call Utils::UI.info 'Linting and releasing pod' sources_manager.update(GONATIVE_SOURCE_NAME) assert_not_pushed! move_framework_file zip! upload_to_s3 push_to_pod_repo! end |