Sha256: f6612edde72e3bb8173a55131720f977f28516468a1459457b4462dd19e28b60

Contents?: true

Size: 1.58 KB

Versions: 74

Compression:

Stored size: 1.58 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",
                                       code_gen_sensitive: true,
                                       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.example_code
        [
          "dotgpg_environment(dotgpg_file: './path/to/gpgfile')"
        ]
      end

      def self.category
        :misc
      end

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

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
fastlane-2.76.0.beta.20180116010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180115010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180114010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180113010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180112010003 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180111010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.76.0.beta.20180110010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.75.1 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.75.0 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.75.0.beta.20180109010003 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.74.1 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.74.0 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.74.0.beta.20180108010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/dotgpg_environment.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/dotgpg_environment.rb