class OpenSecret::Set
The set use case is the generic tool for setting configuration directives inside the opensecret workstation INI formatted file.
The mirror of this use case is unset.
Observable Value¶ ↑
The configuration directive will eithe be created (or will overwrite) an existing directive with the same path.
The configuration file is printed to inform the user of the current state.
Alternative / Error Flows¶ ↑
Error - if the directive path is not composed of two (fwd slash separated) parts Error - if the directive path and/or value contains (or not) unacceptable characters
Attributes
Public Instance Methods
The use use case is borrowed from the database world and it denotes the domain to be used for now (and evermore) for this workstation until another use command is issued.
The parameter domain_name
must be set after an object instance is acquired but before the execute method runs.
# File lib/usecase/set.rb, line 33 def execute end
# File lib/usecase/set.rb, line 37 def pre_validation end