Class: Fastlane::Actions::SharedValues::LaneContextValues
- 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
- #[](key) ⇒ Object
-
#initialize ⇒ LaneContextValues
constructor
A new instance of LaneContextValues.
- #set_sensitive(key, value) ⇒ Object
Methods inherited from Hash
Constructor Details
#initialize ⇒ LaneContextValues
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 |