class Fastlane::Actions::ImportFromGitAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 20 def self.available_options [ FastlaneCore::ConfigItem.new(key: :url, description: "The URL of the repository to import the Fastfile from", default_value: nil), FastlaneCore::ConfigItem.new(key: :branch, description: "The branch or tag to check-out on the repository", default_value: 'HEAD', optional: true), FastlaneCore::ConfigItem.new(key: :path, description: "The path of the Fastfile in the repository", default_value: 'fastlane/Fastfile', optional: true), FastlaneCore::ConfigItem.new(key: :version, description: "The version to checkout on the respository. Optimistic match operator or multiple conditions can be used to select the latest version within constraints", default_value: nil, is_string: false, optional: true) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 66 def self.category :misc end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 12 def self.description "Import another Fastfile from a remote git repository to use its lanes" end
details()
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 16 def self.details "This is useful if you have shared lanes across multiple apps and you want to store the Fastfile in a remote git repository." end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 49 def self.example_code [ 'import_from_git( url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from. branch: "HEAD", # The branch to checkout on the repository path: "fastlane/Fastfile", # The path of the Fastfile in the repository version: "~> 1.0.0" # The version to checkout on the repository. Optimistic match operator can be used to select the latest version within constraints. )', 'import_from_git( url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from. branch: "HEAD", # The branch to checkout on the repository path: "fastlane/Fastfile", # The path of the Fastfile in the repository version: [">= 1.1.0", "< 2.0.0"] # The version to checkout on the repository. Multiple conditions can be used to select the latest version within constraints. )' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 45 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/import_from_git.rb, line 4 def self.run(params) # this is implemented in the fast_file.rb end