diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-21 05:16:29 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-21 05:16:29 -0700 |
commit | 349371e4c13e619b787fb4ab5a3dfcde95fd355e (patch) | |
tree | 49a45f6f0f672745dfdce19f4003f5f3c54870cf /core/store.rb | |
parent | 39dfb870d9a54d63f24a150e995b6da44f81ba43 (diff) | |
download | dinobot-349371e4c13e619b787fb4ab5a3dfcde95fd355e.tar.gz dinobot-349371e4c13e619b787fb4ab5a3dfcde95fd355e.tar.xz |
Persistent storing of admin list (allows reload).
Diffstat (limited to 'core/store.rb')
-rw-r--r-- | core/store.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/store.rb b/core/store.rb index 4d5e9a7..856acee 100644 --- a/core/store.rb +++ b/core/store.rb @@ -6,6 +6,7 @@ module Dinobot attr_accessor :data def initialize(file) + Dir.mkdir(File.dirname(file)) unless Dir.exist?(File.dirname(file)) @store = PStore.new(file, true) read |