{"action":"created","comment":{"url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/comments/86643292","pull_request_review_id":7294860,"id":86643292,"diff_hunk":"@@ -288,6 +288,19 @@ You can also globally set facts in `spec/spec_helper.rb`\n     add_custom_fact :root_home, ->(_os,facts) { \"/tmp/#{facts['hostname']}\" }\n     ```\n \n+  * Load facts directly from YAML file in <module>/spec and confined/excluded as above\n+\n+     ```ruby\n+      # Assign fact import to variable as a constant\n+      # Ensure File is in <module>/spec dir and is prefaced with 'spec' i.e. 'spec/<file>'\n+      GLOBAL_FACTS = add_custom_facts_from_yaml 'spec/<yml_file>'","path":"README.md","position":9,"original_position":9,"commit_id":"74b1811ed5d71e7332cbec96d9a77c78dded7776","original_commit_id":"74b1811ed5d71e7332cbec96d9a77c78dded7776","user":{"login":"rnelson0","id":1898351,"avatar_url":"https://avatars.githubusercontent.com/u/1898351?v=3","gravatar_id":"","url":"https://api.github.com/users/rnelson0","html_url":"https://github.com/rnelson0","followers_url":"https://api.github.com/users/rnelson0/followers","following_url":"https://api.github.com/users/rnelson0/following{/other_user}","gists_url":"https://api.github.com/users/rnelson0/gists{/gist_id}","starred_url":"https://api.github.com/users/rnelson0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnelson0/subscriptions","organizations_url":"https://api.github.com/users/rnelson0/orgs","repos_url":"https://api.github.com/users/rnelson0/repos","events_url":"https://api.github.com/users/rnelson0/events{/privacy}","received_events_url":"https://api.github.com/users/rnelson0/received_events","type":"User","site_admin":false},"body":"Do you need to assign it to a variable?","created_at":"2016-11-04T22:26:23Z","updated_at":"2016-11-04T22:26:38Z","html_url":"https://github.com/mcanevet/rspec-puppet-facts/pull/43#discussion_r86643292","pull_request_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/comments/86643292"},"html":{"href":"https://github.com/mcanevet/rspec-puppet-facts/pull/43#discussion_r86643292"},"pull_request":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43","id":92423613,"html_url":"https://github.com/mcanevet/rspec-puppet-facts/pull/43","diff_url":"https://github.com/mcanevet/rspec-puppet-facts/pull/43.diff","patch_url":"https://github.com/mcanevet/rspec-puppet-facts/pull/43.patch","issue_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/43","number":43,"state":"open","locked":false,"title":"added 'add_custom_facts_from_yaml' function to load default facts from YAML file in <module>/spec","user":{"login":"exodusftw","id":10988256,"avatar_url":"https://avatars.githubusercontent.com/u/10988256?v=3","gravatar_id":"","url":"https://api.github.com/users/exodusftw","html_url":"https://github.com/exodusftw","followers_url":"https://api.github.com/users/exodusftw/followers","following_url":"https://api.github.com/users/exodusftw/following{/other_user}","gists_url":"https://api.github.com/users/exodusftw/gists{/gist_id}","starred_url":"https://api.github.com/users/exodusftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodusftw/subscriptions","organizations_url":"https://api.github.com/users/exodusftw/orgs","repos_url":"https://api.github.com/users/exodusftw/repos","events_url":"https://api.github.com/users/exodusftw/events{/privacy}","received_events_url":"https://api.github.com/users/exodusftw/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-04T22:08:18Z","updated_at":"2016-11-04T22:26:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73d877515b2c6f7a9f57412f38cc2a6246022024","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43/commits","review_comments_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43/comments","review_comment_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/43/comments","statuses_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/statuses/74b1811ed5d71e7332cbec96d9a77c78dded7776","head":{"label":"exodusftw:add_fact_loading_from_yaml","ref":"add_fact_loading_from_yaml","sha":"74b1811ed5d71e7332cbec96d9a77c78dded7776","user":{"login":"exodusftw","id":10988256,"avatar_url":"https://avatars.githubusercontent.com/u/10988256?v=3","gravatar_id":"","url":"https://api.github.com/users/exodusftw","html_url":"https://github.com/exodusftw","followers_url":"https://api.github.com/users/exodusftw/followers","following_url":"https://api.github.com/users/exodusftw/following{/other_user}","gists_url":"https://api.github.com/users/exodusftw/gists{/gist_id}","starred_url":"https://api.github.com/users/exodusftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodusftw/subscriptions","organizations_url":"https://api.github.com/users/exodusftw/orgs","repos_url":"https://api.github.com/users/exodusftw/repos","events_url":"https://api.github.com/users/exodusftw/events{/privacy}","received_events_url":"https://api.github.com/users/exodusftw/received_events","type":"User","site_admin":false},"repo":{"id":72859233,"name":"rspec-puppet-facts","full_name":"exodusftw/rspec-puppet-facts","owner":{"login":"exodusftw","id":10988256,"avatar_url":"https://avatars.githubusercontent.com/u/10988256?v=3","gravatar_id":"","url":"https://api.github.com/users/exodusftw","html_url":"https://github.com/exodusftw","followers_url":"https://api.github.com/users/exodusftw/followers","following_url":"https://api.github.com/users/exodusftw/following{/other_user}","gists_url":"https://api.github.com/users/exodusftw/gists{/gist_id}","starred_url":"https://api.github.com/users/exodusftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodusftw/subscriptions","organizations_url":"https://api.github.com/users/exodusftw/orgs","repos_url":"https://api.github.com/users/exodusftw/repos","events_url":"https://api.github.com/users/exodusftw/events{/privacy}","received_events_url":"https://api.github.com/users/exodusftw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/exodusftw/rspec-puppet-facts","description":"Simplify your unit tests by looping on every supported Operating System and populating facts.","fork":true,"url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts","forks_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/forks","keys_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/teams","hooks_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/hooks","issue_events_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/issues/events{/number}","events_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/events","assignees_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/assignees{/user}","branches_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/branches{/branch}","tags_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/tags","blobs_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/git/refs{/sha}","trees_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/statuses/{sha}","languages_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/languages","stargazers_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/stargazers","contributors_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/contributors","subscribers_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/subscribers","subscription_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/subscription","commits_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/commits{/sha}","git_commits_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/git/commits{/sha}","comments_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/comments{/number}","issue_comment_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/issues/comments{/number}","contents_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/contents/{+path}","compare_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/merges","archive_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/downloads","issues_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/issues{/number}","pulls_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/pulls{/number}","milestones_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/milestones{/number}","notifications_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/labels{/name}","releases_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/releases{/id}","deployments_url":"https://api.github.com/repos/exodusftw/rspec-puppet-facts/deployments","created_at":"2016-11-04T15:17:41Z","updated_at":"2016-11-04T15:17:42Z","pushed_at":"2016-11-04T22:06:26Z","git_url":"git://github.com/exodusftw/rspec-puppet-facts.git","ssh_url":"git@github.com:exodusftw/rspec-puppet-facts.git","clone_url":"https://github.com/exodusftw/rspec-puppet-facts.git","svn_url":"https://github.com/exodusftw/rspec-puppet-facts","homepage":"","size":988,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mcanevet:master","ref":"master","sha":"9eff883e38e0e335ae1a7a5474842709013bf24c","user":{"login":"mcanevet","id":2950673,"avatar_url":"https://avatars.githubusercontent.com/u/2950673?v=3","gravatar_id":"","url":"https://api.github.com/users/mcanevet","html_url":"https://github.com/mcanevet","followers_url":"https://api.github.com/users/mcanevet/followers","following_url":"https://api.github.com/users/mcanevet/following{/other_user}","gists_url":"https://api.github.com/users/mcanevet/gists{/gist_id}","starred_url":"https://api.github.com/users/mcanevet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcanevet/subscriptions","organizations_url":"https://api.github.com/users/mcanevet/orgs","repos_url":"https://api.github.com/users/mcanevet/repos","events_url":"https://api.github.com/users/mcanevet/events{/privacy}","received_events_url":"https://api.github.com/users/mcanevet/received_events","type":"User","site_admin":false},"repo":{"id":27917206,"name":"rspec-puppet-facts","full_name":"mcanevet/rspec-puppet-facts","owner":{"login":"mcanevet","id":2950673,"avatar_url":"https://avatars.githubusercontent.com/u/2950673?v=3","gravatar_id":"","url":"https://api.github.com/users/mcanevet","html_url":"https://github.com/mcanevet","followers_url":"https://api.github.com/users/mcanevet/followers","following_url":"https://api.github.com/users/mcanevet/following{/other_user}","gists_url":"https://api.github.com/users/mcanevet/gists{/gist_id}","starred_url":"https://api.github.com/users/mcanevet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcanevet/subscriptions","organizations_url":"https://api.github.com/users/mcanevet/orgs","repos_url":"https://api.github.com/users/mcanevet/repos","events_url":"https://api.github.com/users/mcanevet/events{/privacy}","received_events_url":"https://api.github.com/users/mcanevet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcanevet/rspec-puppet-facts","description":"Simplify your unit tests by looping on every supported Operating System and populating facts.","fork":false,"url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts","forks_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/forks","keys_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/teams","hooks_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/hooks","issue_events_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/events{/number}","events_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/events","assignees_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/assignees{/user}","branches_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/branches{/branch}","tags_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/tags","blobs_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/statuses/{sha}","languages_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/languages","stargazers_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/stargazers","contributors_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/contributors","subscribers_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/subscribers","subscription_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/subscription","commits_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/contents/{+path}","compare_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/merges","archive_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/downloads","issues_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues{/number}","pulls_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls{/number}","milestones_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/milestones{/number}","notifications_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/labels{/name}","releases_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/releases{/id}","deployments_url":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/deployments","created_at":"2014-12-12T11:10:01Z","updated_at":"2016-10-27T18:57:01Z","pushed_at":"2016-11-04T22:08:18Z","git_url":"git://github.com/mcanevet/rspec-puppet-facts.git","ssh_url":"git@github.com:mcanevet/rspec-puppet-facts.git","clone_url":"https://github.com/mcanevet/rspec-puppet-facts.git","svn_url":"https://github.com/mcanevet/rspec-puppet-facts","homepage":"","size":988,"stargazers_count":33,"watchers_count":33,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":5,"forks":25,"open_issues":5,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43"},"html":{"href":"https://github.com/mcanevet/rspec-puppet-facts/pull/43"},"issue":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/43"},"comments":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/mcanevet/rspec-puppet-facts/statuses/74b1811ed5d71e7332cbec96d9a77c78dded7776"}}}}
{"actor":{"display_login":"rnelson0"}}