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

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

Constant Summary collapse

GONATIVE_SOURCE_NAME =
'gonative-specs'

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#specObject (readonly)

Returns the value of attribute spec.



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

def spec
  @spec
end

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

#callObject



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