Module: Rbcli::ConfigurateStorage
- Defined in:
- lib/rbcli/stateful_systems/localstorage/localstate.rb,
lib/rbcli/stateful_systems/configuratestorage.rb
Overview
Configuration Interface
Class Method Summary collapse
- .configure(&block) ⇒ Object
-
.data ⇒ Object
Data Retrieval.
- .local_state(path, force_creation: false, ignore_file_errors: false) ⇒ Object
Class Method Details
.configure(&block) ⇒ Object
13 14 15 16 |
# File 'lib/rbcli/stateful_systems/configuratestorage.rb', line 13 def self.configure &block @self_before_instance_eval = eval "self", block.binding instance_eval &block end |
.data ⇒ Object
Data Retrieval
21 22 23 |
# File 'lib/rbcli/stateful_systems/configuratestorage.rb', line 21 def self.data @data end |
.local_state(path, force_creation: false, ignore_file_errors: false) ⇒ Object
8 9 10 |
# File 'lib/rbcli/stateful_systems/localstorage/localstate.rb', line 8 def self.local_state path, force_creation: false, ignore_file_errors: false @data[:localstate] = Rbcli::LocalState.new path, force_creation: force_creation, ignore_file_errors: ignore_file_errors end |