Browse files

Revert ALL THE encryption stuffs.

It belongs in another branch, henceforth known as "encrypted"
  • Loading branch information...
1 parent c4a3e5f commit 0f496347daa6f36b79a994d1f8767f0ddda86485 Bendyworks Pair committed Apr 18, 2012
Showing with 164 additions and 7,736 deletions.
  1. +0 −3 .gitignore
  2. +0 −2 .rspec
  3. +17 −1 .rvmrc
  4. +0 −2 Gemfile
  5. +0 −19 Guardfile
  6. +0 −239 README.md
  7. +47 −0 README.textile
  8. +2 −0 Rakefile
  9. +0 −7 bin/idkfa
  10. +0 −122 doc/Idkfa.html
  11. +0 −188 doc/Idkfa/CLI.html
  12. +0 −260 doc/Idkfa/CLI/InitCommand.html
  13. +0 −254 doc/Idkfa/CLI/KeygenCommand.html
  14. +0 −583 doc/Idkfa/Idkfa.html
  15. +0 −108 doc/Idkfa/OpenSSL.html
  16. +0 −524 doc/Idkfa/OpenSSL/Asymmetric.html
  17. +0 −111 doc/Idkfa/OpenSSL/Symmetric.html
  18. +0 −84 doc/_index.html
  19. +0 −3,310 doc/bundle_github.css
  20. +0 −47 doc/class_list.html
  21. +0 −1 doc/css/common.css
  22. +0 −53 doc/css/full_list.css
  23. +0 −320 doc/css/style.css
  24. +0 −197 doc/file.README.html
  25. +0 −46 doc/file_list.html
  26. +0 −13 doc/frames.html
  27. +0 −24 doc/github.html
  28. +0 −33 doc/guard-github-readme.rb
  29. +0 −84 doc/index.html
  30. +0 −205 doc/js/app.js
  31. +0 −150 doc/js/full_list.js
  32. +0 −16 doc/js/jquery.js
  33. +0 −46 doc/method_list.html
  34. BIN doc/stop.png
  35. +0 −103 doc/top-level-namespace.html
  36. +6 −0 gem_tasks/rspec.rake
  37. +1 −11 idkfa.gemspec
  38. +1 −5 lib/idkfa.rb
  39. +24 −0 lib/idkfa/base.rb
  40. +0 −20 lib/idkfa/cli.rb
  41. +0 −2 lib/idkfa/cli/commands.rb
  42. +0 −53 lib/idkfa/cli/init_command.rb
  43. +0 −21 lib/idkfa/cli/keygen_command.rb
  44. +0 −49 lib/idkfa/idkfa.rb
  45. +0 −2 lib/idkfa/open_ssl.rb
  46. +0 −56 lib/idkfa/open_ssl/asymmetric.rb
  47. +0 −6 lib/idkfa/open_ssl/symmetric.rb
  48. +0 −47 spec/acceptance/cli/init/init_creates_credentials_file.feature
  49. +0 −19 spec/acceptance/cli/init/init_creates_keys.feature
  50. +0 −22 spec/acceptance/cli/keygen/keygen_with_default_name.feature
  51. +0 −23 spec/acceptance/cli/keygen/keygen_with_other_name.feature
  52. +0 −3 spec/acceptance/step_definitions/aruba_addition_steps.rb
  53. +0 −26 spec/acceptance/step_definitions/cli_steps.rb
  54. +0 −22 spec/acceptance/step_definitions/directory_stub_steps.rb
  55. +0 −4 spec/acceptance/step_definitions/open_ssl_steps.rb
  56. +0 −8 spec/acceptance/support/env.rb
  57. +59 −0 spec/idkfa_spec.rb
  58. +0 −47 spec/lib/idkfa/cli/init_command_spec.rb
  59. +0 −88 spec/lib/idkfa/open_ssl/asymmetric_spec.rb
  60. +0 −4 spec/lib/idkfa/open_ssl/symmetric_spec.rb
  61. +0 −4 spec/lib/idkfa_spec.rb
  62. +7 −18 spec/spec_helper.rb
  63. +0 −21 tst.rb
View
3 .gitignore
@@ -1,7 +1,4 @@
*.gem
.bundle
-.yardoc
-binstubs/*
Gemfile.lock
pkg/*
-rerun.txt
View
2 .rspec
@@ -1,2 +0,0 @@
---colour
--r turnip
View
18 .rvmrc
@@ -1 +1,17 @@
-rvm use 1.9.3@idkfa --create
+#!/usr/bin/env bash
+
+environment_id="ruby-1.9.2-p136@idkfa"
+
+if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+else
+ # If the environment file has not yet been created, use the RVM CLI to select.
+ rvm --create "$environment_id"
+fi
+
+# Ensure that Bundler is installed, install it if it is not.
+if ! command -v bundle ; then
+ printf "The rubygem 'bundler' is not installed, installing it now.\n"
+ gem install bundler
+fi
View
2 Gemfile
@@ -2,5 +2,3 @@ source "http://rubygems.org"
# Specify your gem's dependencies in idkfa.gemspec
gemspec
-
-gem 'growl'
View
19 Guardfile
@@ -1,19 +0,0 @@
-# require 'guard/guard'
-
-group 'doc' do
- guard 'readme-on-github' do
- watch(/readme\.(md|markdown)/i)
- end
-
- guard 'yard', :port => '8808' do
- watch(%r{lib/.+\.rb})
- end
-end
-
-group 'test' do
- guard 'rspec', :version => 2 do
- watch(%r{^spec/.+_spec\.rb}) { 'spec' }
- watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
- watch('spec/spec_helper.rb') { "spec" }
- end
-end
View
239 README.md
@@ -1,239 +0,0 @@
-![STOP](https://raw.github.com/bendyworks/idkfa/master/doc/stop.png)
-
-
-
-
-# STOP!
-
-No, seriously. STOP!
-
-This README is not yet accurate! That is, do not assume any of this documentation is true until this notice is removed!
-
-
-
-
-# idkfa: Share Sensitive Information Securely
-
-Storing sensitive information (API keys, passwords, etc) in your repository is generally considered A Bad Idea™. That leaves us with the problem of sharing this information out-of-band, which is an error-prone, arduous process. With `idkfa`, you can seamlessly store and use your credentials from within the repository using the magic of *encryption*.
-
-There are two interfaces to `idkfa`: from the command line and as a library. From the command line, you manage the permissions and keys. Using `idkfa` as a ruby library, you can get access to the keys inside your application.
-
-The name `idkfa` comes from the cheat code for Doom which, among other things, gives you all keys.
-
-## Technology
-
-`idkfa` uses both public key (RSA, asymmetric) and block (AES, symmetric) encryption to provide a secure, scalable way of storing sensitive information.
-
-## A WARNING
-
-This tool does not prevent tampering with your sensitive information. For example, if someone gets write-access to your repository and messes around with the credentials file, you could accidentally give them access at a later date.
-
-This "hole" may be fixed in the future. Please comment on the [appropriate issue](https://github.com/bendyworks/idkfa/issues/1) if you have ideas.
-
-
-
-
-# Getting Started
-
-## Installation
-
-Install `idkfa` as a gem:
-
- gem install idkfa
-
-or declare it in your Gemfile:
-
- gem 'idkfa'
-
-
-## Initialization
-
-Then initialize `idkfa` with:
-
- $ idkfa init
-
-This will generate a public/private keypair in `~/.idkfa/` (if it doesn't already exist). It will also create a `credentials.yml` file in `./config/` (if `./config/` exists) or in the current directory. If you'd like to specify the location, use the `-c` flag:
-
- $ idkfa init -c keys/credentials.yml
-
-Sample `credentials.yml`:
-
- ---
- keys:
- - id: '<your-login@your-computer>'
- public_key: '<your idkfa-specific rsa public key>'
- symmetric_key: '<the aes key, encrypted with rsa public key>'
- content: '<aes-encrypted, base64-encoded YAML>'
-
-Here's an example of what a `credentials.yml` might look like with a couple developers and servers:
-
- ---
- keys:
- - id: 'alice@alice.example.com'
- public_key: '<idkfa-specific rsa public key for alice>'
- symmetric_key: '<the aes key, encrypted with rsa public key for alice>'
- - id: 'bob@bob.example.com'
- public_key: '<idkfa-specific rsa public key for bob>'
- symmetric_key: '<the aes key, encrypted with rsa public key for bob>'
- - id: staging server
- public_key: '<rsa public key for staging server>'
- symmetric_key: '<the aes key, encrypted with rsa public key for staging server>'
- - id: production server
- public_key: '<rsa public key for production server>'
- symmetric_key: '<the aes key, encrypted with rsa public key for production server>'
- content: '<aes-encrypted, base64-encoded YAML>'
-
-When the value of the `content` key is decrypted, it is a simple YAML file. The generated file structure is in the following form:
-
- ---
- development:
- # twitter_consumer_key: 'insert consumer key here'
- test:
- # twitter_consumer_key: 'insert consumer key here'
- staging:
- # twitter_consumer_key: 'insert consumer key here'
- production:
- # twitter_consumer_key: 'insert consumer key here'
-
-Changing this information is covered in Managing Your Sensitive Data.
-
-
-
-
-# Managing Access
-
-## User Access
-
-### Creating Your Public/Private Keypair
-
-Running `idkfa init` from the command line will automatically generate a public/private keypair for the current user. It will, however, also generate `credentials.yml` in the same directory. If you do not need to generate a credentials file, you can instead run:
-
- $ idkfa keygen
-
-This will simply generate a public/private keypair if one does not already exist.
-
-### Granting Access to Others
-
-Let's say you're the initial user of `idkfa` on a project. That is, you were the one who ran `idkfa init` to generate the credentials file. That would mean you're the only one authorized to decrypt the sensitive information. A valid use case to be sure, but not great if you intend to collaborate.
-
-#### If You've Never Granted Access to the Other Developer
-
-Granting access to others is quite simple. Have the other developer run `idkfa keygen` from the command line. This will generate two files: `~/.idkfa/default.public.yml` and `~/.idkfa/.default.private.yml`. Transfer the *public* keyfile on a secure channel, like `scp` or sneaker-net. On the authorized computer, run:
-
- $ idkfa import other_users_public_key.yml
-
-This will authorize the other developer and remember the public key for future authorizations in `~/.idkfa/others.yml`.
-
-##### On the Same Network?
-
-If you're on the same network as the other user, you can run:
-
- $ idkfa serve
-
-This will open a server on port 48484 (or you can pass `-p PORT`). The other developer can then run:
-
- $ idkfa request <hostname[:port]>
-
-The user running the server will be prompted to verify a fingerprint (generally done out of band, like vocally). Once verified, the requestor's credentials file will be updated to be authorized. Upon completion, the server will terminate (this can be prevented with `--keep-open`).
-
-#### If You've Previously Granted Access to the Other Developer
-
-If the user's key already exists in `~/.idkfa/others.yml`, simply run the following:
-
- $ idkfa authorize user@host
-
-If you don't remember the other developer's username and host, you can use the following:
-
- $ idkfa authorize --list
-
-If you just want to authorize everyone in your `~/.idkfa/others.yml` file, use:
-
- $ idkfa authorize --all
-
-## Computer (eg: Server) Access
-
-Granting a server access to the encrypted sensitive information is no different than granting a user access (see "Managing User Access"). You simply use the user who is used to run the application. `idkfa`, however, provides convenience plugins to grant server access in certain circumstances.
-
-### Heroku
-
-Until the `heroku-idkfa` gem is written, run the following to generate a new keypair:
-
- $ idkfa keygen heroku
-
-Then, run the following to put the keypair up on heroku:
-
- $ heroku config:add IDKFA_KEYS="$(idkfa base64 heroku)"
-
-<s>Please see the [heroku-idkfa](https://github.com/bendyworks/heroku-idkfa) gem to use `idkfa` seamlessly with [heroku](http://heroku.com). </s>
-
-
-### Capistrano
-
-Until the `capistrano-idkfa` gem is written, simply log onto the server as the application's user and follow the standard user access instructions.
-
-<s>Please see the [capistrano-idkfa](https://github.com/bendyworks/capistrano-idkfa) gem to use `idkfa` seamlessly with [capistrano](http://capify.org).</s>
-
-### Engine Yard
-
-Until the `ey-idkfa` gem is written, simply log onto the server as the application's user and follow the standard user access instructions.
-
-<s>Please see the [ey-idkfa](https://github.com/bendyworks/ey-idkfa) gem to use `idkfa` seamlessly with [Engine Yard Cloud](http://www.engineyard.com). </s>
-
-## Revoking Access
-
-Revoking access is simple, but you must remember that the revoked user probably still has the ability to read old versions of your credentials file. In other words, once you've revoked the user, you'll want to manually reset all of your sensitive information (assuming you can reset your API keys!).
-
-To revoke a user:
-
- $ idkfa revoke user@host
-
-This removes the revokee's information from the credentials file and resets the symmetric key for everyone else. Do not be surprised when your source code management tool reports that your credentials file will be almost entirely rewritten.
-
-
-
-
-# Managing Your Sensitive Information
-
-Since your sensitive information is encrypted, you cannot directly manage that data. `idkfa` provides the ability to dump your sensitive data to a file (credentials.unencrypted.yml) in the same directory as your credentials file:
-
- $ idkfa dump
-
-When you're done, be sure to load the unencrypted file back into encrypted form:
-
- $ idkfa load
-
-<s>If you'd rather not dump the sensitive information to disk, you can edit it in-place with:
-
- $ idkfa edit
-
-</s>
-
-
-
-
-# Usage in Code
-
-* Install as a gem (see "Getting Started")
-* In some initialization portion of your code, you may optionally specify a default namespace: `Idkfa.default_namespace = 'production'` (in the presence of Rails, this will be done automatically)
-* In your code, use `Idkfa['twitter_consumer_key']` (Idkfa will autoload your credentials on first use)
-
-
-
-
-# Developer Notes
-
-* [Gem development guide](https://github.com/radar/guides/blob/master/gem-development.md)
-* [quickl](https://github.com/blambeau/quickl) (probably not necessary, but we can at least evaluate it)
-
-
-
-
-# Acknowledgements
-
-Written by:
-* [Bradley Grzesiak](https://github.com/listrophy) - [Bendyworks](http://bendyworks.com)
-* [Zachery Moneypenny](https://github.com/whazzmaster)
-
-Conceived with the help of:
-* [Jaymes Waters](https://github.com/Jaym3s) - [Bendyworks](http://bendyworks.com)
-* [Nick Karpenske](https://github.com/randland) - [Bendyworks](http://bendyworks.com)
View
47 README.textile
@@ -0,0 +1,47 @@
+h1. idkfa
+
+Storing keys in your repository is A Bad Idea&trade;. With @idkfa@, you can store them in a YAML file outside your repository yet include them easily.
+
+Once installed and setup with @Idkfa.load_keys@, your sensitive information will be stored in upper-cased keys inside @ENV@.
+
+Why "idkfa?" Haven't you played Doom?
+
+h2. Default Configuration
+
+To configure idkfa, you will need to add a @credentials.yml@ file to your project
+
+Sample @config/credentials.yml@:
+
+bc. common: &COMMON
+ domain_url: http://localhost:3000
+ my_secret_api_key: something_really_secret
+development:
+ <<: *COMMON
+production:
+ <<: *COMMON
+
+h2. Usage with Rails
+
+* Add @gem 'idkfa'@ to your @Gemfile@
+* Run @bundle@
+* Add the @Idkfa.load_keys@ call inside your Application definition in @config/application.rb@:
+
+bc. class Application < Rails::Application
+ Idkfa.load_keys Rails.env, :credentials => Rails.root.join('config', 'credentials.yml')
+ ...
+end
+
+* In your application, use @ENV['MY_SECRET_API_KEY']@
+
+h2. General Usage
+
+* Run @gem install idkfa@
+* Use @Idkfa.load_keys :production, :credentials => File.expand_path('../credentials.yml', __FILE__)@ (or similar)
+* In your code, use @ENV['MY_SECRET_API_KEY']@
+
+h2. Acknowledgements
+
+Written/Conceived by:
+* Bradley Grzesiak - Bendyworks
+* Jaymes Waters - Bendyworks
+* Nick Karpenske - Bendyworks
View
2 Rakefile
@@ -2,3 +2,5 @@ require 'bundler'
Bundler::GemHelper.install_tasks
Dir['gem_tasks/**/*.rake'].each {|rake| load rake }
+
+task :default => :spec
View
7 bin/idkfa
@@ -1,7 +0,0 @@
-#!/usr/bin/env ruby
-$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
-
-require 'idkfa'
-require 'idkfa/cli'
-
-Idkfa::CLI.run ARGV.dup
View
122 doc/Idkfa.html
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Module: Idkfa
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (I)</a> &raquo;
-
-
- <span class="title">Idkfa</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Module: Idkfa
-
-
-
-</h1>
-
-<dl class="box">
-
-
-
-
-
-
-
-
- <dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/idkfa.rb<span class="defines">,<br />
- lib/idkfa/cli.rb,<br /> lib/idkfa/idkfa.rb,<br /> lib/idkfa/version.rb,<br /> lib/idkfa/cli/init_command.rb,<br /> lib/idkfa/open_ssl/symmetric.rb,<br /> lib/idkfa/cli/keygen_command.rb,<br /> lib/idkfa/open_ssl/asymmetric.rb</span>
-</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Defined Under Namespace</h2>
-<p class="children">
-
-
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Idkfa/CLI.html" title="Idkfa::CLI (module)">CLI</a></span>, <span class='object_link'><a href="Idkfa/OpenSSL.html" title="Idkfa::OpenSSL (module)">OpenSSL</a></span>
-
-
-
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Idkfa/Idkfa.html" title="Idkfa::Idkfa (class)">Idkfa</a></span>
-
-
-</p>
-
- <h2>Constant Summary</h2>
-
- <dl class="constants">
-
- <dt id="VERSION-constant" class="">VERSION =
-
- </dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
-
- </dl>
-
-
-
-
-
-
-
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
188 doc/Idkfa/CLI.html
@@ -1,188 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Module: Idkfa::CLI
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../_index.html">Index (C)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span>
- &raquo;
- <span class="title">CLI</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Module: Idkfa::CLI
-
-
-
-</h1>
-
-<dl class="box">
-
-
-
-
-
-
-
-
- <dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/idkfa/cli.rb<span class="defines">,<br />
- lib/idkfa/cli/init_command.rb,<br /> lib/idkfa/cli/keygen_command.rb</span>
-</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Defined Under Namespace</h2>
-<p class="children">
-
-
-
-
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="CLI/InitCommand.html" title="Idkfa::CLI::InitCommand (class)">InitCommand</a></span>, <span class='object_link'><a href="CLI/KeygenCommand.html" title="Idkfa::CLI::KeygenCommand (class)">KeygenCommand</a></span>
-
-
-</p>
-
-
-
-
-
-
- <h2>
- Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#run-class_method" title="run (class method)">+ (Object) <strong>run</strong>(opts = []) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- </ul>
-
-
-
-
- <div id="class_method_details" class="method_details_list">
- <h2>Class Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="run-class_method">
-
- + (<tt>Object</tt>) <strong>run</strong>(opts = [])
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/cli.rb', line 8</span>
-
-<span class='kw'>def</span> <span class='id run'>run</span> <span class='id opts'>opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
- <span class='kw'>case</span> <span class='id opts'>opts</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>init</span><span class='tstring_end'>'</span></span>
- <span class='const'>InitCommand</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id run'>run</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>keygen</span><span class='tstring_end'>'</span></span>
- <span class='const'>KeygenCommand</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id run'>run</span>
- <span class='kw'>else</span>
- <span class='id abort'>abort</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>invalid command</span><span class='tstring_end'>'</span></span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
260 doc/Idkfa/CLI/InitCommand.html
@@ -1,260 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Class: Idkfa::CLI::InitCommand
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '../..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../../_index.html">Index (I)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CLI.html" title="Idkfa::CLI (module)">CLI</a></span></span>
- &raquo;
- <span class="title">InitCommand</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Idkfa::CLI::InitCommand
-
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">Idkfa::CLI::InitCommand</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/idkfa/cli/init_command.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
-
-
-
- <h2>
- Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (InitCommand) <strong>initialize</strong>(opts) </a>
-
-
-
- </span>
-
- <span class="note title constructor">constructor</span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-A new instance of InitCommand.
-</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- </ul>
-
-
-<div id="constructor_details" class="method_details_list">
- <h2>Constructor Details</h2>
-
- <div class="method_details first">
- <p class="signature first" id="initialize-instance_method">
-
- - (<tt><span class='object_link'><a href="" title="Idkfa::CLI::InitCommand (class)">InitCommand</a></span></tt>) <strong>initialize</strong>(opts)
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-A new instance of InitCommand
-</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-7
-8
-9
-10
-11
-12</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/cli/init_command.rb', line 7</span>
-
-<span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id opts'>opts</span>
- <span class='ivar'>@parsed</span> <span class='op'>=</span> <span class='const'>Slop</span><span class='period'>.</span><span class='id parse'>parse</span> <span class='id opts'>opts</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
- <span class='id o'>o</span><span class='period'>.</span><span class='id on'>on</span> <span class='symbol'>:c</span><span class='comma'>,</span> <span class='symbol'>:config_file</span><span class='comma'>,</span> <span class='symbol'>:optional</span> <span class='op'>=&gt;</span> <span class='kw'>true</span>
- <span class='id o'>o</span><span class='period'>.</span><span class='id on'>on</span> <span class='symbol'>:k</span><span class='comma'>,</span> <span class='symbol'>:key_name</span><span class='comma'>,</span> <span class='symbol'>:optional</span> <span class='op'>=&gt;</span> <span class='kw'>true</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
-</div>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="run-instance_method">
-
- - (<tt>Object</tt>) <strong>run</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-14
-15
-16
-17
-18
-19
-20</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/cli/init_command.rb', line 14</span>
-
-<span class='kw'>def</span> <span class='id run'>run</span>
- <span class='id idkfa'>idkfa</span> <span class='op'>=</span> <span class='const'>Idkfa</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='ivar'>@parsed</span><span class='lbracket'>[</span><span class='symbol'>:config_file</span><span class='rbracket'>]</span><span class='rparen'>)</span>
- <span class='id idkfa'>idkfa</span><span class='period'>.</span><span class='id authorizations'>authorizations</span> <span class='op'>&lt;&lt;</span> <span class='const'>Authorization</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='ivar'>@parsed</span><span class='lbracket'>[</span><span class='symbol'>:key_name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
- <span class='id idkfa'>idkfa</span><span class='period'>.</span><span class='id save'>save</span>
- <span class='comment'># OpenSSL::Asymmetric.create_keypair_unless_exists(@parsed[:key_name])
-</span> <span class='comment'># create_credentials_file unless credentials_file_exists?
-</span><span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
254 doc/Idkfa/CLI/KeygenCommand.html
@@ -1,254 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Class: Idkfa::CLI::KeygenCommand
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '../..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../../_index.html">Index (K)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CLI.html" title="Idkfa::CLI (module)">CLI</a></span></span>
- &raquo;
- <span class="title">KeygenCommand</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Idkfa::CLI::KeygenCommand
-
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">Idkfa::CLI::KeygenCommand</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/idkfa/cli/keygen_command.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
-
-
-
- <h2>
- Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (KeygenCommand) <strong>initialize</strong>(opts = []) </a>
-
-
-
- </span>
-
- <span class="note title constructor">constructor</span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-A new instance of KeygenCommand.
-</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- </ul>
-
-
-<div id="constructor_details" class="method_details_list">
- <h2>Constructor Details</h2>
-
- <div class="method_details first">
- <p class="signature first" id="initialize-instance_method">
-
- - (<tt><span class='object_link'><a href="" title="Idkfa::CLI::KeygenCommand (class)">KeygenCommand</a></span></tt>) <strong>initialize</strong>(opts = [])
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-A new instance of KeygenCommand
-</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-7
-8
-9</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/cli/keygen_command.rb', line 7</span>
-
-<span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id opts'>opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
- <span class='ivar'>@keypair_name</span> <span class='op'>=</span> <span class='id opts'>opts</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>?</span> <span class='id opts'>opts</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>default</span><span class='tstring_end'>'</span></span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
-</div>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="run-instance_method">
-
- - (<tt>Object</tt>) <strong>run</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-11
-12
-13
-14
-15
-16
-17</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/cli/keygen_command.rb', line 11</span>
-
-<span class='kw'>def</span> <span class='id run'>run</span>
- <span class='kw'>if</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>Asymmetric</span><span class='period'>.</span><span class='id keypair_exists?'>keypair_exists?</span> <span class='ivar'>@keypair_name</span>
- <span class='id abort'>abort</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>A key pair for '</span><span class='embexpr_beg'>#{</span><span class='ivar'>@keypair_name</span><span class='rbrace'>}</span><span class='tstring_content'>' already exists</span><span class='tstring_end'>&quot;</span></span>
- <span class='kw'>else</span>
- <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>Asymmetric</span><span class='period'>.</span><span class='id create_keypair'>create_keypair</span> <span class='ivar'>@keypair_name</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
583 doc/Idkfa/Idkfa.html
@@ -1,583 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Class: Idkfa::Idkfa
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../_index.html">Index (I)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span>
- &raquo;
- <span class="title">Idkfa</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Idkfa::Idkfa
-
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">Idkfa::Idkfa</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/idkfa/idkfa.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#authorizations-instance_method" title="#authorizations (instance method)">- (Object) <strong>authorizations</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-Returns the value of attribute authorizations.
-</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#config_file-instance_method" title="#config_file (instance method)">- (Object) <strong>config_file</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-idkfa.save.
-</p>
-</div></span>
-
-</li>
-
-
- </ul>
-
-
-
-
-
- <h2>
- Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#home_directory-class_method" title="home_directory (class method)">+ (Object) <strong>home_directory</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#key_directory-class_method" title="key_directory (class method)">+ (Object) <strong>key_directory</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#project_directory-class_method" title="project_directory (class method)">+ (Object) <strong>project_directory</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- </ul>
-
- <h2>
- Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Idkfa) <strong>initialize</strong>(config_file) </a>
-
-
-
- </span>
-
- <span class="note title constructor">constructor</span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-Generates an empty set of credentials, ready to be written to file.
-</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#save-instance_method" title="#save (instance method)">- (Object) <strong>save</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
-Saves the credentials to `@config_file`.
-</p>
-</div></span>
-
-</li>
-
-
- </ul>
-
-
-<div id="constructor_details" class="method_details_list">
- <h2>Constructor Details</h2>
-
- <div class="method_details first">
- <p class="signature first" id="initialize-instance_method">
-
- - (<tt><span class='object_link'><a href="" title="Idkfa::Idkfa (class)">Idkfa</a></span></tt>) <strong>initialize</strong>(config_file)
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-Generates an empty set of credentials, ready to be written to file
-</p>
-<p>
-Should only be called when you want to start from scratch. If you already
-have a credentials file, use Idkfa.load
-</p>
-<h2>Parameters:</h2>
-<table>
-<tr><td valign="top">config_file</td><td><p>
-A String with the path to where the credentials should be saved
-</p>
-</td></tr>
-</table>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-40
-41
-42
-43</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 40</span>
-
-<span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id config_file'>config_file</span>
- <span class='ivar'>@config_file</span> <span class='op'>=</span> <span class='id config_file'>config_file</span>
- <span class='ivar'>@authorizations</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
-</div>
-
- <div id="instance_attr_details" class="attr_details">
- <h2>Instance Attribute Details</h2>
-
-
- <span id="authorizations=-instance_method"></span>
- <span id="authorizations-instance_method"></span>
- <div class="method_details first">
- <p class="signature first" id="authorizations-instance_method">
-
- - (<tt>Object</tt>) <strong>authorizations</strong>
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-Returns the value of attribute authorizations
-</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-29
-30
-31</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 29</span>
-
-<span class='kw'>def</span> <span class='id authorizations'>authorizations</span>
- <span class='ivar'>@authorizations</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
-
- <span id="config_file=-instance_method"></span>
- <span id="config_file-instance_method"></span>
- <div class="method_details ">
- <p class="signature " id="config_file-instance_method">
-
- - (<tt>Object</tt>) <strong>config_file</strong>
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-idkfa.save
-</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-27
-28
-29</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 27</span>
-
-<span class='kw'>def</span> <span class='id config_file'>config_file</span>
- <span class='ivar'>@config_file</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-
- <div id="class_method_details" class="method_details_list">
- <h2>Class Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="home_directory-class_method">
-
- + (<tt>Object</tt>) <strong>home_directory</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-15
-16
-17</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 15</span>
-
-<span class='kw'>def</span> <span class='id home_directory'>home_directory</span>
- <span class='ivar'>@home_directory</span> <span class='op'>||=</span> <span class='const'>File</span><span class='period'>.</span><span class='id expand_path'>expand_path</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>~</span><span class='tstring_end'>'</span></span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="key_directory-class_method">
-
- + (<tt>Object</tt>) <strong>key_directory</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-19
-20
-21</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 19</span>
-
-<span class='kw'>def</span> <span class='id key_directory'>key_directory</span>
- <span class='ivar'>@key_directory</span> <span class='op'>||=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span> <span class='id home_directory'>home_directory</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.idkfa</span><span class='tstring_end'>'</span></span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="project_directory-class_method">
-
- + (<tt>Object</tt>) <strong>project_directory</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-11
-12
-13</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 11</span>
-
-<span class='kw'>def</span> <span class='id project_directory'>project_directory</span>
- <span class='ivar'>@project_directory</span> <span class='op'>||=</span> <span class='const'>File</span><span class='period'>.</span><span class='id expand_path'>expand_path</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="save-instance_method">
-
- - (<tt>Object</tt>) <strong>save</strong>
-
-
-
-</p><div class="docstring">
- <div class="discussion">
- <p>
-Saves the credentials to `@config_file`
-</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-46
-47
-48</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/idkfa/idkfa.rb', line 46</span>
-
-<span class='kw'>def</span> <span class='id save'>save</span>
-
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
108 doc/Idkfa/OpenSSL.html
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Module: Idkfa::OpenSSL
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../_index.html">Index (O)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span>
- &raquo;
- <span class="title">OpenSSL</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Module: Idkfa::OpenSSL
-
-
-
-</h1>
-
-<dl class="box">
-
-
-
-
-
-
-
-
- <dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/idkfa/open_ssl/symmetric.rb<span class="defines">,<br />
- lib/idkfa/open_ssl/asymmetric.rb</span>
-</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Defined Under Namespace</h2>
-<p class="children">
-
-
-
-
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenSSL/Asymmetric.html" title="Idkfa::OpenSSL::Asymmetric (class)">Asymmetric</a></span>, <span class='object_link'><a href="OpenSSL/Symmetric.html" title="Idkfa::OpenSSL::Symmetric (class)">Symmetric</a></span>
-
-
-</p>
-
-
-
-
-
-
-
-</div>
-
- <div id="footer">
- Generated on Wed Aug 24 12:02:14 2011 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.2 (ruby-1.9.2).
-</div>
-
- </body>
-</html>
View
524 doc/Idkfa/OpenSSL/Asymmetric.html
@@ -1,524 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>
- Class: Idkfa::OpenSSL::Asymmetric
-
- &mdash; Documentation by YARD 0.7.2
-
-</title>
-
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
-
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '../..';
- if (relpath != '') relpath += '/';
-</script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
-
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="../../_index.html">Index (A)</a> &raquo;
- <span class='title'><span class='object_link'><a href="../../Idkfa.html" title="Idkfa (module)">Idkfa</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../OpenSSL.html" title="Idkfa::OpenSSL (module)">OpenSSL</a></span></span>
- &raquo;
- <span class="title">Asymmetric</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
-
- <a id="class_list_link" href="#">Class List</a>
-
- <a id="method_list_link" href="#">Method List</a>
-
- <a id="file_list_link" href="#">File List</a>
-
-</div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Idkfa::OpenSSL::Asymmetric
-
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">Idkfa::OpenSSL::Asymmetric</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/idkfa/open_ssl/asymmetric.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
-
-
-
- <h2>
- Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#create_keypair-class_method" title="create_keypair (class method)">+ (Object) <strong>create_keypair</strong>(keypair_name) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#create_keypair_directory-class_method" title="create_keypair_directory (class method)">+ (Object) <strong>create_keypair_directory</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#create_keypair_unless_exists-class_method" title="create_keypair_unless_exists (class method)">+ (Object) <strong>create_keypair_unless_exists</strong>(key_name = nil) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#generate_keypair-class_method" title="generate_keypair (class method)">+ (Object) <strong>generate_keypair</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#keypair_exists%3F-class_method" title="keypair_exists? (class method)">+ (Boolean) <strong>keypair_exists?</strong>(keypair_name) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#write_key-class_method" title="write_key (class method)">+ (Object) <strong>write_key</strong>(filename, key, opts = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#write_keypair-class_method"