Class: GoNative::Plugins::IOS::Release

Inherits:
Object
  • Object
show all
Extended by:
DSL::Serviceable
Defined in:
lib/gonative/plugins/ios/release.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(project_root)
end

Instance Attribute Details

#project_rootObject (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_urlObject (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

#scopeObject (readonly)

Returns the value of attribute scope.



17
18
19
# File 'lib/gonative/plugins/ios/release.rb', line 17

def scope
  @scope
end

#versionObject (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

#callObject



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