Class: LocalStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/local_storage.rb

Instance Method Summary collapse

Instance Method Details

#load(key) ⇒ Object



13
14
15
16
# File 'lib/renuo/cli/app/local_storage.rb', line 13

def load(key)
  config = load_config
  config[key.to_s]
end

#store(key, value) ⇒ Object



6
7
8
9
10
11
# File 'lib/renuo/cli/app/local_storage.rb', line 6

def store(key, value)
  setup
  config = load_config
  config[key.to_s] = value
  write_config(config)
end