{"action":"created","comment":{"url":"https://api.github.com/repos/dvjones89/sheldon/pulls/comments/42786734","id":42786734,"diff_hunk":"@@ -0,0 +1,51 @@\n+require 'fileutils'\n+require 'pathname'\n+require 'yaml/store'\n+require_relative 'sheldon/helpers'\n+require_relative 'sheldon/brain'\n+\n+class Sheldon\n+  \n+  include Helpers\n+\n+  def learn(rel_learn_path)\n+    abs_learn_path = File.join(Dir.pwd, rel_learn_path)\n+    database = load_db \n+  \n+    print(\"Friendly Name For File/Folder: \")\n+    recall_cue = STDIN.gets.chomp\n+\n+    database.transaction do\n+      if recall_cue == '' || database[recall_cue]\n+        puts \"Name not specified or already in use. Please try again.\"\n+        abort\n+      else\n+        Brain.new.learn(recall_cue, abs_learn_path)\n+        Brain.new.recall(recall_cue, abs_learn_path)\n+        # FileUtils.ln_s(source, destination)\n+        database[recall_cue] = {file_path: remove_home(abs_learn_path)}\n+      end\n+    end\n+\n+  end\n+\n+  def list\n+    database = load_db\n+    database.transaction do\n+      database.roots.each { |recall_cue| puts recall_cue }","path":"lib/sheldon.rb","position":35,"original_position":35,"commit_id":"5a181e8850c26ff28370d60c0dfbaa51ad79919c","original_commit_id":"5a181e8850c26ff28370d60c0dfbaa51ad79919c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not write to stdout. Use Rails' logger if you want to log.","created_at":"2015-10-22T18:28:36Z","updated_at":"2015-10-22T18:28:36Z","html_url":"https://github.com/dvjones89/sheldon/pull/3#discussion_r42786734","pull_request_url":"https://api.github.com/repos/dvjones89/sheldon/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/comments/42786734"},"html":{"href":"https://github.com/dvjones89/sheldon/pull/3#discussion_r42786734"},"pull_request":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dvjones89/sheldon/pulls/3","id":47825816,"html_url":"https://github.com/dvjones89/sheldon/pull/3","diff_url":"https://github.com/dvjones89/sheldon/pull/3.diff","patch_url":"https://github.com/dvjones89/sheldon/pull/3.patch","issue_url":"https://api.github.com/repos/dvjones89/sheldon/issues/3","number":3,"state":"open","locked":false,"title":"Sheldon 2.0","user":{"login":"dvjones89","id":1914715,"avatar_url":"https://avatars.githubusercontent.com/u/1914715?v=3","gravatar_id":"","url":"https://api.github.com/users/dvjones89","html_url":"https://github.com/dvjones89","followers_url":"https://api.github.com/users/dvjones89/followers","following_url":"https://api.github.com/users/dvjones89/following{/other_user}","gists_url":"https://api.github.com/users/dvjones89/gists{/gist_id}","starred_url":"https://api.github.com/users/dvjones89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvjones89/subscriptions","organizations_url":"https://api.github.com/users/dvjones89/orgs","repos_url":"https://api.github.com/users/dvjones89/repos","events_url":"https://api.github.com/users/dvjones89/events{/privacy}","received_events_url":"https://api.github.com/users/dvjones89/received_events","type":"User","site_admin":false},"body":"Sheldon is being rewritten from the ground up.\r\n\r\nRetaining all the old features, Sheldon will now have some extra tricks up his sleeve:\r\n* Much easier to view the contents of Sheldon's brain\r\n* Create your symlinks without the need to first `cd` into the destination directory\r\n* Easily add new configs to Sheldon's brain without manually copying to his data directory.","created_at":"2015-10-15T18:47:54Z","updated_at":"2015-10-22T18:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebb471f76c3439017e12a15d98af5a5148720aa9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dvjones89/sheldon/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dvjones89/sheldon/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dvjones89/sheldon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dvjones89/sheldon/issues/3/comments","statuses_url":"https://api.github.com/repos/dvjones89/sheldon/statuses/5a181e8850c26ff28370d60c0dfbaa51ad79919c","head":{"label":"dvjones89:sheldon_2.0","ref":"sheldon_2.0","sha":"5a181e8850c26ff28370d60c0dfbaa51ad79919c","user":{"login":"dvjones89","id":1914715,"avatar_url":"https://avatars.githubusercontent.com/u/1914715?v=3","gravatar_id":"","url":"https://api.github.com/users/dvjones89","html_url":"https://github.com/dvjones89","followers_url":"https://api.github.com/users/dvjones89/followers","following_url":"https://api.github.com/users/dvjones89/following{/other_user}","gists_url":"https://api.github.com/users/dvjones89/gists{/gist_id}","starred_url":"https://api.github.com/users/dvjones89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvjones89/subscriptions","organizations_url":"https://api.github.com/users/dvjones89/orgs","repos_url":"https://api.github.com/users/dvjones89/repos","events_url":"https://api.github.com/users/dvjones89/events{/privacy}","received_events_url":"https://api.github.com/users/dvjones89/received_events","type":"User","site_admin":false},"repo":{"id":30093738,"name":"sheldon","full_name":"dvjones89/sheldon","owner":{"login":"dvjones89","id":1914715,"avatar_url":"https://avatars.githubusercontent.com/u/1914715?v=3","gravatar_id":"","url":"https://api.github.com/users/dvjones89","html_url":"https://github.com/dvjones89","followers_url":"https://api.github.com/users/dvjones89/followers","following_url":"https://api.github.com/users/dvjones89/following{/other_user}","gists_url":"https://api.github.com/users/dvjones89/gists{/gist_id}","starred_url":"https://api.github.com/users/dvjones89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvjones89/subscriptions","organizations_url":"https://api.github.com/users/dvjones89/orgs","repos_url":"https://api.github.com/users/dvjones89/repos","events_url":"https://api.github.com/users/dvjones89/events{/privacy}","received_events_url":"https://api.github.com/users/dvjones89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dvjones89/sheldon","description":"Another config and dotfile manager. Bazinga!","fork":false,"url":"https://api.github.com/repos/dvjones89/sheldon","forks_url":"https://api.github.com/repos/dvjones89/sheldon/forks","keys_url":"https://api.github.com/repos/dvjones89/sheldon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvjones89/sheldon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvjones89/sheldon/teams","hooks_url":"https://api.github.com/repos/dvjones89/sheldon/hooks","issue_events_url":"https://api.github.com/repos/dvjones89/sheldon/issues/events{/number}","events_url":"https://api.github.com/repos/dvjones89/sheldon/events","assignees_url":"https://api.github.com/repos/dvjones89/sheldon/assignees{/user}","branches_url":"https://api.github.com/repos/dvjones89/sheldon/branches{/branch}","tags_url":"https://api.github.com/repos/dvjones89/sheldon/tags","blobs_url":"https://api.github.com/repos/dvjones89/sheldon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvjones89/sheldon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvjones89/sheldon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvjones89/sheldon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvjones89/sheldon/statuses/{sha}","languages_url":"https://api.github.com/repos/dvjones89/sheldon/languages","stargazers_url":"https://api.github.com/repos/dvjones89/sheldon/stargazers","contributors_url":"https://api.github.com/repos/dvjones89/sheldon/contributors","subscribers_url":"https://api.github.com/repos/dvjones89/sheldon/subscribers","subscription_url":"https://api.github.com/repos/dvjones89/sheldon/subscription","commits_url":"https://api.github.com/repos/dvjones89/sheldon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvjones89/sheldon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvjones89/sheldon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvjones89/sheldon/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvjones89/sheldon/contents/{+path}","compare_url":"https://api.github.com/repos/dvjones89/sheldon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvjones89/sheldon/merges","archive_url":"https://api.github.com/repos/dvjones89/sheldon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvjones89/sheldon/downloads","issues_url":"https://api.github.com/repos/dvjones89/sheldon/issues{/number}","pulls_url":"https://api.github.com/repos/dvjones89/sheldon/pulls{/number}","milestones_url":"https://api.github.com/repos/dvjones89/sheldon/milestones{/number}","notifications_url":"https://api.github.com/repos/dvjones89/sheldon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvjones89/sheldon/labels{/name}","releases_url":"https://api.github.com/repos/dvjones89/sheldon/releases{/id}","created_at":"2015-01-30T22:33:00Z","updated_at":"2015-02-03T09:41:05Z","pushed_at":"2015-10-22T18:28:33Z","git_url":"git://github.com/dvjones89/sheldon.git","ssh_url":"git@github.com:dvjones89/sheldon.git","clone_url":"https://github.com/dvjones89/sheldon.git","svn_url":"https://github.com/dvjones89/sheldon","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dvjones89:master","ref":"master","sha":"04cbbf6548f7d839cfaf432df7d2ac63e36a8c16","user":{"login":"dvjones89","id":1914715,"avatar_url":"https://avatars.githubusercontent.com/u/1914715?v=3","gravatar_id":"","url":"https://api.github.com/users/dvjones89","html_url":"https://github.com/dvjones89","followers_url":"https://api.github.com/users/dvjones89/followers","following_url":"https://api.github.com/users/dvjones89/following{/other_user}","gists_url":"https://api.github.com/users/dvjones89/gists{/gist_id}","starred_url":"https://api.github.com/users/dvjones89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvjones89/subscriptions","organizations_url":"https://api.github.com/users/dvjones89/orgs","repos_url":"https://api.github.com/users/dvjones89/repos","events_url":"https://api.github.com/users/dvjones89/events{/privacy}","received_events_url":"https://api.github.com/users/dvjones89/received_events","type":"User","site_admin":false},"repo":{"id":30093738,"name":"sheldon","full_name":"dvjones89/sheldon","owner":{"login":"dvjones89","id":1914715,"avatar_url":"https://avatars.githubusercontent.com/u/1914715?v=3","gravatar_id":"","url":"https://api.github.com/users/dvjones89","html_url":"https://github.com/dvjones89","followers_url":"https://api.github.com/users/dvjones89/followers","following_url":"https://api.github.com/users/dvjones89/following{/other_user}","gists_url":"https://api.github.com/users/dvjones89/gists{/gist_id}","starred_url":"https://api.github.com/users/dvjones89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvjones89/subscriptions","organizations_url":"https://api.github.com/users/dvjones89/orgs","repos_url":"https://api.github.com/users/dvjones89/repos","events_url":"https://api.github.com/users/dvjones89/events{/privacy}","received_events_url":"https://api.github.com/users/dvjones89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dvjones89/sheldon","description":"Another config and dotfile manager. Bazinga!","fork":false,"url":"https://api.github.com/repos/dvjones89/sheldon","forks_url":"https://api.github.com/repos/dvjones89/sheldon/forks","keys_url":"https://api.github.com/repos/dvjones89/sheldon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvjones89/sheldon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvjones89/sheldon/teams","hooks_url":"https://api.github.com/repos/dvjones89/sheldon/hooks","issue_events_url":"https://api.github.com/repos/dvjones89/sheldon/issues/events{/number}","events_url":"https://api.github.com/repos/dvjones89/sheldon/events","assignees_url":"https://api.github.com/repos/dvjones89/sheldon/assignees{/user}","branches_url":"https://api.github.com/repos/dvjones89/sheldon/branches{/branch}","tags_url":"https://api.github.com/repos/dvjones89/sheldon/tags","blobs_url":"https://api.github.com/repos/dvjones89/sheldon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvjones89/sheldon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvjones89/sheldon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvjones89/sheldon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvjones89/sheldon/statuses/{sha}","languages_url":"https://api.github.com/repos/dvjones89/sheldon/languages","stargazers_url":"https://api.github.com/repos/dvjones89/sheldon/stargazers","contributors_url":"https://api.github.com/repos/dvjones89/sheldon/contributors","subscribers_url":"https://api.github.com/repos/dvjones89/sheldon/subscribers","subscription_url":"https://api.github.com/repos/dvjones89/sheldon/subscription","commits_url":"https://api.github.com/repos/dvjones89/sheldon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvjones89/sheldon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvjones89/sheldon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvjones89/sheldon/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvjones89/sheldon/contents/{+path}","compare_url":"https://api.github.com/repos/dvjones89/sheldon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvjones89/sheldon/merges","archive_url":"https://api.github.com/repos/dvjones89/sheldon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvjones89/sheldon/downloads","issues_url":"https://api.github.com/repos/dvjones89/sheldon/issues{/number}","pulls_url":"https://api.github.com/repos/dvjones89/sheldon/pulls{/number}","milestones_url":"https://api.github.com/repos/dvjones89/sheldon/milestones{/number}","notifications_url":"https://api.github.com/repos/dvjones89/sheldon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvjones89/sheldon/labels{/name}","releases_url":"https://api.github.com/repos/dvjones89/sheldon/releases{/id}","created_at":"2015-01-30T22:33:00Z","updated_at":"2015-02-03T09:41:05Z","pushed_at":"2015-10-22T18:28:33Z","git_url":"git://github.com/dvjones89/sheldon.git","ssh_url":"git@github.com:dvjones89/sheldon.git","clone_url":"https://github.com/dvjones89/sheldon.git","svn_url":"https://github.com/dvjones89/sheldon","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/3"},"html":{"href":"https://github.com/dvjones89/sheldon/pull/3"},"issue":{"href":"https://api.github.com/repos/dvjones89/sheldon/issues/3"},"comments":{"href":"https://api.github.com/repos/dvjones89/sheldon/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dvjones89/sheldon/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dvjones89/sheldon/statuses/5a181e8850c26ff28370d60c0dfbaa51ad79919c"}}}}