{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/comments/79711154","id":79711154,"diff_hunk":"@@ -33,6 +35,19 @@ def initialize(platform, project, options = { :configdir => nil, :target => nil,\n       raise Vanagon::Error.wrap(e, \"Could not load the desired engine '#{engine}'\")\n     end\n \n+    def filter_out_components(project, only_build)\n+      filtered_components = []\n+      only_build.each do |comp|\n+        filtered_components += @project.filter_component(comp)","path":"lib/vanagon/driver.rb","position":28,"original_position":28,"commit_id":"7aec62908986544032b6ef83a82fb0edd943f71a","original_commit_id":"7aec62908986544032b6ef83a82fb0edd943f71a","user":{"login":"McdonaldSeanp","id":6415932,"avatar_url":"https://avatars.githubusercontent.com/u/6415932?v=3","gravatar_id":"","url":"https://api.github.com/users/McdonaldSeanp","html_url":"https://github.com/McdonaldSeanp","followers_url":"https://api.github.com/users/McdonaldSeanp/followers","following_url":"https://api.github.com/users/McdonaldSeanp/following{/other_user}","gists_url":"https://api.github.com/users/McdonaldSeanp/gists{/gist_id}","starred_url":"https://api.github.com/users/McdonaldSeanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McdonaldSeanp/subscriptions","organizations_url":"https://api.github.com/users/McdonaldSeanp/orgs","repos_url":"https://api.github.com/users/McdonaldSeanp/repos","events_url":"https://api.github.com/users/McdonaldSeanp/events{/privacy}","received_events_url":"https://api.github.com/users/McdonaldSeanp/received_events","type":"User","site_admin":false},"body":"Yeah, It should be @project","created_at":"2016-09-20T20:59:55Z","updated_at":"2016-09-20T20:59:55Z","html_url":"https://github.com/puppetlabs/vanagon/pull/409#discussion_r79711154","pull_request_url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/comments/79711154"},"html":{"href":"https://github.com/puppetlabs/vanagon/pull/409#discussion_r79711154"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409","id":86047542,"html_url":"https://github.com/puppetlabs/vanagon/pull/409","diff_url":"https://github.com/puppetlabs/vanagon/pull/409.diff","patch_url":"https://github.com/puppetlabs/vanagon/pull/409.patch","issue_url":"https://api.github.com/repos/puppetlabs/vanagon/issues/409","number":409,"state":"open","locked":false,"title":"(VANAGON-8) Add the ability to only build single components in vanagon","user":{"login":"McdonaldSeanp","id":6415932,"avatar_url":"https://avatars.githubusercontent.com/u/6415932?v=3","gravatar_id":"","url":"https://api.github.com/users/McdonaldSeanp","html_url":"https://github.com/McdonaldSeanp","followers_url":"https://api.github.com/users/McdonaldSeanp/followers","following_url":"https://api.github.com/users/McdonaldSeanp/following{/other_user}","gists_url":"https://api.github.com/users/McdonaldSeanp/gists{/gist_id}","starred_url":"https://api.github.com/users/McdonaldSeanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McdonaldSeanp/subscriptions","organizations_url":"https://api.github.com/users/McdonaldSeanp/orgs","repos_url":"https://api.github.com/users/McdonaldSeanp/repos","events_url":"https://api.github.com/users/McdonaldSeanp/events{/privacy}","received_events_url":"https://api.github.com/users/McdonaldSeanp/received_events","type":"User","site_admin":false},"body":"The use case for devs is they need to only build a single component and it's\r\ndependencies. This PR solves this by adding a filter_components function to\r\nthe project class that recursively compiles all the components build\r\ndependencies (and the build dependencies' dependencies and so on) together in\r\nto one array. The driver class will use that function and replace the project\r\nobjects' components array with the output of filter_components.\r\n\r\nVanagon is built well enough to handle the rest, all build steps and makefile\r\nrules can remain the same.\r\n\r\nThis should be a strictly additive change, and should not affect any current\r\nbuild processes.\r\n\r\nUsage: bundle exec build \\<project\\> \\<platform\\> [--only-build \\<components\\>]\r\nwhere \\<components\\> is a comma seperated list","created_at":"2016-09-20T20:11:29Z","updated_at":"2016-09-20T20:59:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f9549f925d2c291e6dfa9b2db3cf5f9df93d0b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/vanagon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/vanagon/issues/409/comments","statuses_url":"https://api.github.com/repos/puppetlabs/vanagon/statuses/7aec62908986544032b6ef83a82fb0edd943f71a","head":{"label":"McdonaldSeanp:CPR-380","ref":"CPR-380","sha":"7aec62908986544032b6ef83a82fb0edd943f71a","user":{"login":"McdonaldSeanp","id":6415932,"avatar_url":"https://avatars.githubusercontent.com/u/6415932?v=3","gravatar_id":"","url":"https://api.github.com/users/McdonaldSeanp","html_url":"https://github.com/McdonaldSeanp","followers_url":"https://api.github.com/users/McdonaldSeanp/followers","following_url":"https://api.github.com/users/McdonaldSeanp/following{/other_user}","gists_url":"https://api.github.com/users/McdonaldSeanp/gists{/gist_id}","starred_url":"https://api.github.com/users/McdonaldSeanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McdonaldSeanp/subscriptions","organizations_url":"https://api.github.com/users/McdonaldSeanp/orgs","repos_url":"https://api.github.com/users/McdonaldSeanp/repos","events_url":"https://api.github.com/users/McdonaldSeanp/events{/privacy}","received_events_url":"https://api.github.com/users/McdonaldSeanp/received_events","type":"User","site_admin":false},"repo":{"id":46823262,"name":"vanagon","full_name":"McdonaldSeanp/vanagon","owner":{"login":"McdonaldSeanp","id":6415932,"avatar_url":"https://avatars.githubusercontent.com/u/6415932?v=3","gravatar_id":"","url":"https://api.github.com/users/McdonaldSeanp","html_url":"https://github.com/McdonaldSeanp","followers_url":"https://api.github.com/users/McdonaldSeanp/followers","following_url":"https://api.github.com/users/McdonaldSeanp/following{/other_user}","gists_url":"https://api.github.com/users/McdonaldSeanp/gists{/gist_id}","starred_url":"https://api.github.com/users/McdonaldSeanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McdonaldSeanp/subscriptions","organizations_url":"https://api.github.com/users/McdonaldSeanp/orgs","repos_url":"https://api.github.com/users/McdonaldSeanp/repos","events_url":"https://api.github.com/users/McdonaldSeanp/events{/privacy}","received_events_url":"https://api.github.com/users/McdonaldSeanp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/McdonaldSeanp/vanagon","description":"All of your packages will fit into this van with this one simple trick.","fork":true,"url":"https://api.github.com/repos/McdonaldSeanp/vanagon","forks_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/forks","keys_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/teams","hooks_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/hooks","issue_events_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/issues/events{/number}","events_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/events","assignees_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/assignees{/user}","branches_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/branches{/branch}","tags_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/tags","blobs_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/git/refs{/sha}","trees_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/statuses/{sha}","languages_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/languages","stargazers_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/stargazers","contributors_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/contributors","subscribers_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/subscribers","subscription_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/subscription","commits_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/commits{/sha}","git_commits_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/git/commits{/sha}","comments_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/comments{/number}","issue_comment_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/issues/comments{/number}","contents_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/contents/{+path}","compare_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/merges","archive_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/downloads","issues_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/issues{/number}","pulls_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/pulls{/number}","milestones_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/milestones{/number}","notifications_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/labels{/name}","releases_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/releases{/id}","deployments_url":"https://api.github.com/repos/McdonaldSeanp/vanagon/deployments","created_at":"2015-11-24T22:41:48Z","updated_at":"2016-02-05T03:45:37Z","pushed_at":"2016-09-20T20:27:04Z","git_url":"git://github.com/McdonaldSeanp/vanagon.git","ssh_url":"git@github.com:McdonaldSeanp/vanagon.git","clone_url":"https://github.com/McdonaldSeanp/vanagon.git","svn_url":"https://github.com/McdonaldSeanp/vanagon","homepage":null,"size":1120,"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":"puppetlabs:master","ref":"master","sha":"5a781e2069b3c5d65bc9cb1fc8e225635c4c2022","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26653553,"name":"vanagon","full_name":"puppetlabs/vanagon","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/vanagon","description":"All of your packages will fit into this van with this one simple trick.","fork":false,"url":"https://api.github.com/repos/puppetlabs/vanagon","forks_url":"https://api.github.com/repos/puppetlabs/vanagon/forks","keys_url":"https://api.github.com/repos/puppetlabs/vanagon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/vanagon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/vanagon/teams","hooks_url":"https://api.github.com/repos/puppetlabs/vanagon/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/vanagon/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/vanagon/events","assignees_url":"https://api.github.com/repos/puppetlabs/vanagon/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/vanagon/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/vanagon/tags","blobs_url":"https://api.github.com/repos/puppetlabs/vanagon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/vanagon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/vanagon/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/vanagon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/vanagon/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/vanagon/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/vanagon/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/vanagon/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/vanagon/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/vanagon/subscription","commits_url":"https://api.github.com/repos/puppetlabs/vanagon/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/vanagon/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/vanagon/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/vanagon/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/vanagon/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/vanagon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/vanagon/merges","archive_url":"https://api.github.com/repos/puppetlabs/vanagon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/vanagon/downloads","issues_url":"https://api.github.com/repos/puppetlabs/vanagon/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/vanagon/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/vanagon/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/vanagon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/vanagon/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/vanagon/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/vanagon/deployments","created_at":"2014-11-14T19:17:18Z","updated_at":"2016-07-10T15:16:08Z","pushed_at":"2016-09-20T20:27:04Z","git_url":"git://github.com/puppetlabs/vanagon.git","ssh_url":"git@github.com:puppetlabs/vanagon.git","clone_url":"https://github.com/puppetlabs/vanagon.git","svn_url":"https://github.com/puppetlabs/vanagon","homepage":null,"size":1250,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":2,"forks":27,"open_issues":2,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409"},"html":{"href":"https://github.com/puppetlabs/vanagon/pull/409"},"issue":{"href":"https://api.github.com/repos/puppetlabs/vanagon/issues/409"},"comments":{"href":"https://api.github.com/repos/puppetlabs/vanagon/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/vanagon/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/vanagon/statuses/7aec62908986544032b6ef83a82fb0edd943f71a"}}}}
{"actor":{"display_login":"McdonaldSeanp"}}