Sha256: 2ea304da6cc76e3b8dbd2bbe3158bb52e22a82ef9173b1e253cb7aa2cee26055

Contents?: true

Size: 1.35 KB

Versions: 35

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'

        UI.message("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|
                                         UI.user_error!("Dotgpg file '#{File.expand_path(value)}' not found") unless File.exist?(value)
                                       end)
        ]
      end

      def self.authors
        ["simonlevy5"]
      end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.103.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.102.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.101.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.100.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.99.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.98.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.97.2 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.97.1 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.97.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.96.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.95.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.94.1 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.94.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.93.1 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.93.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.92.0 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/dotgpg_environment.rb
fastlane-1.91.0 lib/fastlane/actions/dotgpg_environment.rb