Sha256: 6835d3c1fa702800db33d50436990ce4b7930a85998eb344370434f5bfc7643a

Contents?: true

Size: 262 Bytes

Versions: 4

Compression:

Stored size: 262 Bytes

Contents

class Jets::CLI::Env
  class Get < Base
    def run
      @lambda_function.environment_variables.find do |key, value|
        if key == @options[:key]
          puts value
          exit # success
        end
      end
      exit 1 # not found
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/cli/env/get.rb
jets-6.0.4 lib/jets/cli/env/get.rb
jets-6.0.3 lib/jets/cli/env/get.rb
jets-6.0.2 lib/jets/cli/env/get.rb