Class: Fastlane::Actions::RustoreDeveloperCommitAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::RustoreDeveloperCommitAction
- Defined in:
- lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_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
16 17 18 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 16 def self. ["RimiX2"] end |
.available_options ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 29 def self. [ FastlaneCore::ConfigItem.new(key: :package, env_name: "RUSTORE_PACKAGE_NAME", description: "Android app package name (FQDN)", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :version, description: "Version ID", optional: true, type: String, default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_DRAFT_VERSION]), FastlaneCore::ConfigItem.new(key: :token, description: "Access token", optional: false, sensitive: true, default_value: Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN], verify_block: proc do |value| UI.user_error!("No access token given, pass using `token: 'token_value'`") unless value && !value.empty? end, type: String) ] end |
.description ⇒ Object
12 13 14 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 12 def self.description "RUSTORE: Submit version for moderation (commit)" end |
.details ⇒ Object
24 25 26 27 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 24 def self.details # Optional: "" end |
.is_supported?(platform) ⇒ Boolean
53 54 55 56 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 53 def self.is_supported?(platform) [:android].include?(platform) true end |
.return_value ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 20 def self.return_value "Was operation successfull? (true|false)" end |
.run(params) ⇒ Object
8 9 10 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_commit_action.rb', line 8 def self.run(params) return Helper::RustoreDeveloperHelper.commitVersion(params[:token], params[:package],params[:version]) end |