diff options
| author | Zack Hobson | 2014-01-30 11:19:46 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2014-01-30 11:21:50 -0800 | 
| commit | b9667daf02a8bab42c2a4ee91a2938cfa6538437 (patch) | |
| tree | 1e58be1a835373eef56a87b84c0eb58db83a959f /lib | |
| parent | 305d21c44e05e42408fb6886f07b6128cf9f3342 (diff) | |
| download | hcl-b9667daf02a8bab42c2a4ee91a2938cfa6538437.tar.bz2 | |
HCl::App: touch aliases cache on startup
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/app.rb | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb index 044b83d..47a87af 100644 --- a/lib/hcl/app.rb +++ b/lib/hcl/app.rb @@ -185,15 +185,20 @@ EOM        else          @settings = {}        end +      cache_aliases      end -    def write_settings +    def cache_aliases        File.open(ALIAS_LIST, 'w') do |f|          f.write aliases.join(' ')        end +    end + +    def write_settings        File.open(SETTINGS_FILE, 'w') do |f|         f.write @settings.to_yaml        end +      cache_aliases        nil      end | 
