Class: Fastlane::Actions::DecryptFastlaneVarsAction

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

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



54
55
56
57
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 54

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ["cball", "isaiahgrey93"]
end

.available_optionsObject



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 33

def self.available_options
  # Define all options your action supports. 
  
  # Below a few examples
  [
    FastlaneCore::ConfigItem.new(key: :set_env,
                                 env_name: "FL_DECRYPT_FASTLANE_VARS_SET_ENV", # The name of the environment variable
                                 description: "Sets the decrypted values in env", # a short description of this parameter
                                 type: Boolean,
                                 default_value: true)
  ]
end

.descriptionObject



24
25
26
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 24

def self.description
  "Decrypts fastlane ENV vars from the encrypted repo. Optionally sets them in ENV."
end

.detailsObject



28
29
30
31
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 28

def self.details
  # Optional:
  # this is your chance to provide a more detailed description of this action
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 59

def self.is_supported?(platform)
  [:ios, :android].include?(platform)
end

.return_valueObject



46
47
48
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 46

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/fastlane/plugin/react_native_release/actions/decrypt_fastlane_vars.rb', line 7

def self.run(params)

  env = other_action.cryptex(
    type: "export_env",
    key: Helper::ReactNativeReleaseHelper::FASTLANE_CRYPTEX_KEY,
    set_env: params[:set_env]
  )

  UI.success('Decrypted fastlane vars')
  
  env
end