Class: Fastlane::Actions::RustoreDeveloperDeleteDraftAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



17
18
19
# File 'lib/fastlane/plugin/rustore_developer/actions/rustore_developer_delete_draft_action.rb', line 17

def self.authors
  ["RimiX2"]
end

.available_optionsObject



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.available_options
  [
      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

.descriptionObject



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

.detailsObject



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

Returns:

  • (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_valueObject



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