Class: Fastlane::Actions::SqCiToolsYandexApiGetIamTokenAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SqCiToolsYandexApiGetIamTokenAction
- Defined in:
- lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(_) ⇒ Boolean
- .return_type ⇒ Object
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
49 50 51 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 49 def self. ['Semen Kologrivov'] end |
.available_options ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 29 def self. [ FastlaneCore::ConfigItem.new( key: :keys_file_path, env_name: 'SQ_CI_YANDEX_API_KEY_FILE_PATH', description: 'File with keys of Yandex\'s Service account', optional: false, type: String ) ] end |
.description ⇒ Object
21 22 23 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 21 def self.description 'Fetch Yandex API IAM-token' end |
.details ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 25 def self.details '' end |
.is_supported?(_) ⇒ Boolean
53 54 55 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 53 def self.is_supported?(_) true end |
.return_type ⇒ Object
41 42 43 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 41 def self.return_type :string end |
.return_value ⇒ Object
45 46 47 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 45 def self.return_value 'Yandex API IAM-token' end |
.run(params) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_yandex_api_get_iam_token_action.rb', line 11 def self.run(params) keys_file_path = params[:keys_file_path] iam_token = Helper::SqCiToolsYandexApiHelper.get_iam_token( keys_file_path: keys_file_path ) lane_context[SharedValues::SQ_CI_YANDEX_API_IAM_TOKEN] = iam_token return iam_token end |