Sha256: 95217e56f61a04516e3c7dd597b29e70a2ade33cefc6f903cefcdc74bf94d85f

Contents?: true

Size: 1.35 KB

Versions: 63

Compression:

Stored size: 1.35 KB

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class DotgpgEnvironmentAction < Action
      def self.run(options)
        Actions.verify_gem!('dotgpg')
        require 'dotgpg/environment'

        Helper.log.info "Reading secrets from #{options[:dotgpg_file]}"
        Dotgpg::Environment.new(options[:dotgpg_file]).apply
      end

      def self.description
        "Reads in production secrets set in a dotgpg file and puts them in ENV"
      end

      def self.details
        "More information about dotgpg can be found at https://github.com/ConradIrwin/dotgpg"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :dotgpg_file,
                                       env_name: "DOTGPG_FILE",
                                       description: "Path to your gpg file",
                                       default_value: Dir["dotgpg/*.gpg"].last,
                                       optional: false,
                                       verify_block: proc do |value|
                                         raise "Dotgpg file '#{File.expand_path(value)}' not found".red unless File.exist?(value)
                                       end)
        ]
      end

      def self.authors
        ["simonlevy5"]
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.65.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.64.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.63.1 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.63.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.62.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.61.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.60.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.59.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.58.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.57.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.56.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.55.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.54.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.53.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.52.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.51.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.50.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.49.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.48.0 lib/fastlane/actions/dotgpg_environment.rb