class Fastlane::Actions::ShowBuildsAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/download_circleci_artifacts/actions/show_builds.rb, line 19 def self.available_options [ FastlaneCore::ConfigItem.new(key: :api_token, env_name: "CIRCLECI_TOKEN", description: "API Token for Circle CI", type: String, optional: true), FastlaneCore::ConfigItem.new(key: :user_name, env_name: "CIRCLECI_USER_NAME", description: "user name for Circle CI", type: String, optional: true), FastlaneCore::ConfigItem.new(key: :repository, env_name: "CIRCLECI_REPOSITORY", description: "repository for Circle CI", type: String, optional: true), FastlaneCore::ConfigItem.new(key: :recent_build_count, env_name: "CIRCLECI_RECENT_BUILD_COUNT", description: "get recent build count", type: Integer, optional: true) ] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/download_circleci_artifacts/actions/show_builds.rb, line 15 def self.description "This action show recent builds a Circle CI artifact's using the Circle CI API" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/download_circleci_artifacts/actions/show_builds.rb, line 48 def self.is_supported?(platform) [:ios, :mac, :android].include?(platform) end
run(params)
click to toggle source
# File lib/fastlane/plugin/download_circleci_artifacts/actions/show_builds.rb, line 6 def self.run(params) builds = GetRecentBuildsAction.run(params) table = Helper::DownloadCircleciArtifactsHelper.convert_to(builds) puts table end