Class: Fastlane::Actions::SharedValues::LaneContextValues

Inherits:
Hash
  • Object
show all
Defined in:
fastlane/lib/fastlane/actions/actions_helper.rb

Overview

A slightly decorated hash that will store and fetch sensitive data but not display it while iterating keys and values

Instance Method Summary collapse

Methods inherited from Hash

#fastlane_deep_merge

Constructor Details

#initializeLaneContextValues

Returns a new instance of LaneContextValues.



11
12
13
# File 'fastlane/lib/fastlane/actions/actions_helper.rb', line 11

def initialize
  @sensitive_context = {}
end

Instance Method Details

#[](key) ⇒ Object



19
20
21
22
23
24
# File 'fastlane/lib/fastlane/actions/actions_helper.rb', line 19

def [](key)
  if @sensitive_context.key?(key)
    return @sensitive_context[key]
  end
  super
end

#set_sensitive(key, value) ⇒ Object



15
16
17
# File 'fastlane/lib/fastlane/actions/actions_helper.rb', line 15

def set_sensitive(key, value)
  @sensitive_context[key] = value
end