Method: OnePass::Application.save
- Defined in:
- lib/OnePass/application.rb
.save(vault_path = nil) ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/OnePass/application.rb', line 91 def self.save(vault_path = nil) new vault_path # if succeeds, path & pw is good path = File. CONFIG_PATH File.open path, File::CREAT | File::TRUNC | File::RDWR do |file| file.write "path=#{File. vault_path}\n" end end |