Class: Fastlane::Actions::SqCiToolsRuStoreGetTokenAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SqCiToolsRuStoreGetTokenAction
- Defined in:
- lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_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
60 61 62 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 60 def self. ['Semen Kologrivov'] end |
.available_options ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 33 def self. [ FastlaneCore::ConfigItem.new( key: :key_id, env_name: 'SQ_CI_RU_STORE_KEY_ID', description: 'Identifier of RuStore\'s API key', optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :private_key, env_name: 'SQ_CI_RU_STORE_PRIVATE_KEY', description: 'Private key for RuStore\'s API key', optional: false, type: String ) ] + Options::Shared. end |
.description ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 25 def self.description 'Fetch token for RuStore API' end |
.details ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 29 def self.details '' end |
.is_supported?(_) ⇒ Boolean
64 65 66 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 64 def self.is_supported?(_) true end |
.return_type ⇒ Object
52 53 54 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 52 def self.return_type :string end |
.return_value ⇒ Object
56 57 58 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 56 def self.return_value 'RuStore API Token' end |
.run(params) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_ru_store_get_token_action.rb', line 11 def self.run(params) key_id = params[:key_id] private_key = params[:private_key] timeout = params[:timeout] token = Helper::RuStoreHelper.get_token( key_id: key_id, private_key: private_key, timeout: timeout ) lane_context[SharedValues::SQ_CI_RU_STORE_TOKEN] = token return token end |