class Fastlane::Actions::DotgpgEnvironmentAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 23 def self.available_options [ FastlaneCore::ConfigItem.new(key: :dotgpg_file, env_name: "DOTGPG_FILE", description: "Path to your gpg file", code_gen_sensitive: true, default_value: Dir["dotgpg/*.gpg"].last, default_value_dynamic: true, optional: false, verify_block: proc do |value| UI.user_error!("Dotgpg file '#{File.expand_path(value)}' not found") unless File.exist?(value) end) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 48 def self.category :misc end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 15 def self.description "Reads in production secrets set in a dotgpg file and puts them in ENV" end
details()
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 19 def self.details "More information about dotgpg can be found at [https://github.com/ConradIrwin/dotgpg](https://github.com/ConradIrwin/dotgpg)." end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 42 def self.example_code [ "dotgpg_environment(dotgpg_file: './path/to/gpgfile')" ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 52 def self.is_supported?(platform) true end
run(options)
click to toggle source
# File fastlane/lib/fastlane/actions/dotgpg_environment.rb, line 7 def self.run(options) Actions.verify_gem!('dotgpg') require 'dotgpg/environment' UI.message("Reading secrets from #{options[:dotgpg_file]}") Dotgpg::Environment.new(options[:dotgpg_file]).apply end