Class: Fastlane::Actions::DownloadManifestAction

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

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



31
32
33
# File 'lib/fastlane/plugin/apprepo/actions/download_manifest.rb', line 31

def self.authors
  ['[email protected]']
end

.available_optionsObject



27
28
29
# File 'lib/fastlane/plugin/apprepo/actions/download_manifest.rb', line 27

def self.available_options
  []
end

.descriptionObject



23
24
25
# File 'lib/fastlane/plugin/apprepo/actions/download_manifest.rb', line 23

def self.description
  'Runs the Apprepo plugin'
end

.is_supported?(_platform) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/fastlane/plugin/apprepo/actions/download_manifest.rb', line 35

def self.is_supported?(_platform)
  true
end

.run(_params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/fastlane/plugin/apprepo/actions/download_manifest.rb', line 4

def self.run(_params)
  puts _params
  command :download_manifest do |c|
    c.syntax = 'apprepo download_manifest'
    c.description = 'Download metadata only'
    c.action do |_args, options|
      config = FastlaneCore::Configuration
      available_opts = Apprepo::Options.available_options
      options = config.create(available_opts, options.__hash__)
      options.load_configuration_file('Repofile')
      Apprepo::Runner.new(options).download_manifest
    end
  end
end