Class: Fastlane::Actions::IconBannerRestoreAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



16
17
18
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb', line 16

def self.authors
  ['ebelair']
end

.descriptionObject



12
13
14
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb', line 12

def self.description
  'Restores the original app icons (can be used after build to clean up the repository)'
end

.example_codeObject



20
21
22
23
24
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb', line 20

def self.example_code
  [
      'icon_banner_restore()'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb', line 26

def self.is_supported?(platform)
  [:ios, :android].include?(platform)
end

.run(params) ⇒ Object



7
8
9
10
# File 'lib/fastlane/plugin/icon_banner/actions/icon_banner_restore_action.rb', line 7

def self.run(params)
  Actions.verify_gem!('icon-banner')
  Helper::IconBannerHelper.restore
end