{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments/34456708","id":34456708,"diff_hunk":"@@ -0,0 +1,29 @@\n+class Targeting < ActiveRecord::Base\n+\n+  belongs_to :user\n+  belongs_to :bookmark\n+\n+  has_many :targeting_hosts, :dependent => :destroy\n+  has_many :hosts, :through => :targeting_hosts\n+  has_many :template_invocations, :dependent => :destroy","path":"app/models/targeting.rb","position":8,"original_position":8,"commit_id":"9efefaa1950965cc2ffab10991385fd735a9a6e1","original_commit_id":"32e3680e8f44ca7e0909690e5cd2574d8c3652ab","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"body":"That wasn't my impression.  There would be a single targeting and the appropriate template would be used at invocation time for each system.  Specifying a targeting per template seems a tad complex, as I am unlikely to create my bookmarks for a single remote execution provider type. ","created_at":"2015-07-13T12:12:57Z","updated_at":"2015-07-13T12:12:57Z","html_url":"https://github.com/theforeman/foreman_remote_execution/pull/4#discussion_r34456708","pull_request_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments/34456708"},"html":{"href":"https://github.com/theforeman/foreman_remote_execution/pull/4#discussion_r34456708"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4","id":38561916,"html_url":"https://github.com/theforeman/foreman_remote_execution/pull/4","diff_url":"https://github.com/theforeman/foreman_remote_execution/pull/4.diff","patch_url":"https://github.com/theforeman/foreman_remote_execution/pull/4.patch","issue_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/4","number":4,"state":"open","locked":false,"title":"fixes #10890 - Adding invocation models","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-25T15:44:18Z","updated_at":"2015-07-13T12:12:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffd1707cc8cf98176a653aa1b6618d000a7784ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/4/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/9efefaa1950965cc2ffab10991385fd735a9a6e1","head":{"label":"jlsherrill:invocation","ref":"invocation","sha":"9efefaa1950965cc2ffab10991385fd735a9a6e1","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"repo":{"id":38058311,"name":"foreman_remote_execution","full_name":"jlsherrill/foreman_remote_execution","owner":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlsherrill/foreman_remote_execution","description":"A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality","fork":true,"url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution","forks_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/forks","keys_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/teams","hooks_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/hooks","issue_events_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/issues/events{/number}","events_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/events","assignees_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/assignees{/user}","branches_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/branches{/branch}","tags_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/tags","blobs_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/statuses/{sha}","languages_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/languages","stargazers_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/stargazers","contributors_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/contributors","subscribers_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/subscribers","subscription_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/subscription","commits_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/contents/{+path}","compare_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/merges","archive_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/downloads","issues_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/issues{/number}","pulls_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/pulls{/number}","milestones_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/milestones{/number}","notifications_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/labels{/name}","releases_url":"https://api.github.com/repos/jlsherrill/foreman_remote_execution/releases{/id}","created_at":"2015-06-25T15:40:27Z","updated_at":"2015-06-25T15:40:27Z","pushed_at":"2015-07-13T02:50:40Z","git_url":"git://github.com/jlsherrill/foreman_remote_execution.git","ssh_url":"git@github.com:jlsherrill/foreman_remote_execution.git","clone_url":"https://github.com/jlsherrill/foreman_remote_execution.git","svn_url":"https://github.com/jlsherrill/foreman_remote_execution","homepage":"","size":1154,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"theforeman:master","ref":"master","sha":"eae09f32c3ec07b811176928d40d4958da3065c3","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":34800230,"name":"foreman_remote_execution","full_name":"theforeman/foreman_remote_execution","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman_remote_execution","description":"A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality","fork":false,"url":"https://api.github.com/repos/theforeman/foreman_remote_execution","forks_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/forks","keys_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/events","assignees_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/merges","archive_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/releases{/id}","created_at":"2015-04-29T14:57:15Z","updated_at":"2015-06-20T11:05:23Z","pushed_at":"2015-07-13T02:50:40Z","git_url":"git://github.com/theforeman/foreman_remote_execution.git","ssh_url":"git@github.com:theforeman/foreman_remote_execution.git","clone_url":"https://github.com/theforeman/foreman_remote_execution.git","svn_url":"https://github.com/theforeman/foreman_remote_execution","homepage":"","size":1586,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4"},"html":{"href":"https://github.com/theforeman/foreman_remote_execution/pull/4"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/4"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/9efefaa1950965cc2ffab10991385fd735a9a6e1"}}}}