Class: Fastlane::Actions::RustoreDeveloperDeleteDraftAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::RustoreDeveloperDeleteDraftAction
- Defined in:
- lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_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
17 18 19 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 17 def self. ["RimiX2"] end |
.available_options ⇒ Object
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_delete_draft_action.rb', line 30 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: :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), FastlaneCore::ConfigItem.new(key: :version_id, description: "Draft version id", optional: false, type: String), ] end |
.description ⇒ Object
13 14 15 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 13 def self.description "RUSTORE: Delete specific draft version" end |
.details ⇒ Object
25 26 27 28 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 25 def self.details # Optional: "" end |
.is_supported?(platform) ⇒ Boolean
53 54 55 56 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 53 def self.is_supported?(platform) [:android].include?(platform) true end |
.return_value ⇒ Object
21 22 23 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 21 def self.return_value "Was operation successfull? (true|false)" end |
.run(params) ⇒ Object
9 10 11 |
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 9 def self.run(params) return Helper::RustoreDeveloperHelper.deleteDraft(params[:token], params[:package],params[:version_id]) end |