aboutsummaryrefslogtreecommitdiff
path: root/lib/keyring/fs.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-01-22 18:24:55 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-01-22 18:24:55 -0200
commit7382be9d83bc5f95ad8d184b95c379ca5b9d1725 (patch)
tree5ad086f30f59f22e27d427cab1e30ef5282ddbf0 /lib/keyring/fs.rb
parent42fdb4e702f1235ad6f4ae099f8d265e498a62d4 (diff)
downloadkeyringer-7382be9d83bc5f95ad8d184b95c379ca5b9d1725.tar.gz
keyringer-7382be9d83bc5f95ad8d184b95c379ca5b9d1725.tar.bz2
Code split into backend, keyring and keyringer modules
Diffstat (limited to 'lib/keyring/fs.rb')
-rw-r--r--lib/keyring/fs.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/keyring/fs.rb b/lib/keyring/fs.rb
new file mode 100644
index 0000000..9f20378
--- /dev/null
+++ b/lib/keyring/fs.rb
@@ -0,0 +1,13 @@
+module Keyring
+ class Fs
+ def get_as_string(filename)
+ data = ''
+ f = File.open(filename, "r")
+ f.each_line do |line|
+ data += line
+ end
+ return data
+ end
+ end
+end
+