Class: Fastlane::Actions::GitlabGetReleaseAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::GitlabGetReleaseAction
- Defined in:
- lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
19 20 21 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 19 def self. ["Erick Martins"] end |
.available_options ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 32 def self. [ FastlaneCore::ConfigItem.new(key: :endpoint, description: "The API endpoint URL, default: ENV['GITLAB_ENDPOINT']", env_name: "GITLAB_ENDPOINT", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :private_token, description: "User's private token or OAuth2 access token", env_name: "GITLAB_PRIVATE_TOKEN", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :project_id, description: "The id of this project, given from GitLab. Default ENV[\"GITLAB_PROJECT_ID\"]", env_name: "GITLAB_PROJECT_ID", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :tag, description: "The name of the tag. (ex: 1.0)", optional: false, type: String), ] end |
.description ⇒ Object
15 16 17 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 15 def self.description "Simple plugin to manage gitlab releases" end |
.details ⇒ Object
27 28 29 30 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 27 def self.details # Optional: "Simple plugin to manage gitlab releases" end |
.is_supported?(platform) ⇒ Boolean
59 60 61 62 63 64 65 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 59 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform # # [:ios, :mac, :android].include?(platform) true end |
.return_value ⇒ Object
23 24 25 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 23 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/fastlane/plugin/gitlab_tag_release/actions/gitlab_get_release_action.rb', line 7 def self.run(params) Helper::GitlabTagReleaseHelper::GitlabClient.new( endpoint: params[:endpoint], private_token: params[:private_token], project_id: params[:project_id] ).get_release_by(tag: params[:tag]) end |