{"action":"created","comment":{"url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/comments/33897618","id":33897618,"diff_hunk":"@@ -0,0 +1,21 @@\n+require_relative 'resource_systemd_unit'\n+require_relative 'systemd_automount'\n+\n+class Chef::Resource\n+  class SystemdAutomount < Chef::Resource::SystemdUnit\n+    self.resource_name = :systemd_automount\n+    provides :systemd_automount\n+\n+    def unit_type(_ = nil)","path":"libraries/resource_systemd_automount.rb","position":9,"original_position":9,"commit_id":"38a7832678c231e21b6957f66cdfe02a1b8f9de7","original_commit_id":"38a7832678c231e21b6957f66cdfe02a1b8f9de7","user":{"login":"ranjib","id":316306,"avatar_url":"https://avatars.githubusercontent.com/u/316306?v=3","gravatar_id":"","url":"https://api.github.com/users/ranjib","html_url":"https://github.com/ranjib","followers_url":"https://api.github.com/users/ranjib/followers","following_url":"https://api.github.com/users/ranjib/following{/other_user}","gists_url":"https://api.github.com/users/ranjib/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjib/subscriptions","organizations_url":"https://api.github.com/users/ranjib/orgs","repos_url":"https://api.github.com/users/ranjib/repos","events_url":"https://api.github.com/users/ranjib/events{/privacy}","received_events_url":"https://api.github.com/users/ranjib/received_events","type":"User","site_admin":false},"body":"do we need this as a method override? unit resource can provide a class method to do this,\r\n```ruby\r\ndef self.unit_type(type)\r\n@@unit_type = type\r\nend\r\n```\r\nand in in child resources..\r\n```ruby\r\nunit_type :automount\r\n```","created_at":"2015-07-05T18:51:34Z","updated_at":"2015-07-05T18:51:34Z","html_url":"https://github.com/nathwill/chef-systemd/pull/4#discussion_r33897618","pull_request_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/comments/33897618"},"html":{"href":"https://github.com/nathwill/chef-systemd/pull/4#discussion_r33897618"},"pull_request":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4","id":38711546,"html_url":"https://github.com/nathwill/chef-systemd/pull/4","diff_url":"https://github.com/nathwill/chef-systemd/pull/4.diff","patch_url":"https://github.com/nathwill/chef-systemd/pull/4.patch","issue_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/4","number":4,"state":"open","locked":false,"title":"WIP: systemd_unit resource","user":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"body":"related to https://github.com/nathwill/chef-systemd/issues/2 and https://github.com/nathwill/chef-systemd/issues/3","created_at":"2015-06-27T16:05:36Z","updated_at":"2015-07-05T18:51:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"971601e8a4d1b2e2543f671b75d00b6362958990","assignee":null,"milestone":{"url":"https://api.github.com/repos/nathwill/chef-systemd/milestones/1","html_url":"https://github.com/nathwill/chef-systemd/milestones/0.1","labels_url":"https://api.github.com/repos/nathwill/chef-systemd/milestones/1/labels","id":1182899,"number":1,"title":"0.1","description":null,"creator":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-06-26T16:47:26Z","updated_at":"2015-06-27T16:05:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4/commits","review_comments_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4/comments","review_comment_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/4/comments","statuses_url":"https://api.github.com/repos/nathwill/chef-systemd/statuses/38a7832678c231e21b6957f66cdfe02a1b8f9de7","head":{"label":"nathwill:systemd-unit","ref":"systemd-unit","sha":"38a7832678c231e21b6957f66cdfe02a1b8f9de7","user":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"repo":{"id":38121590,"name":"chef-systemd","full_name":"nathwill/chef-systemd","owner":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathwill/chef-systemd","description":"chef cookbook for systemd","fork":false,"url":"https://api.github.com/repos/nathwill/chef-systemd","forks_url":"https://api.github.com/repos/nathwill/chef-systemd/forks","keys_url":"https://api.github.com/repos/nathwill/chef-systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathwill/chef-systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathwill/chef-systemd/teams","hooks_url":"https://api.github.com/repos/nathwill/chef-systemd/hooks","issue_events_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/events{/number}","events_url":"https://api.github.com/repos/nathwill/chef-systemd/events","assignees_url":"https://api.github.com/repos/nathwill/chef-systemd/assignees{/user}","branches_url":"https://api.github.com/repos/nathwill/chef-systemd/branches{/branch}","tags_url":"https://api.github.com/repos/nathwill/chef-systemd/tags","blobs_url":"https://api.github.com/repos/nathwill/chef-systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathwill/chef-systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathwill/chef-systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathwill/chef-systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathwill/chef-systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/nathwill/chef-systemd/languages","stargazers_url":"https://api.github.com/repos/nathwill/chef-systemd/stargazers","contributors_url":"https://api.github.com/repos/nathwill/chef-systemd/contributors","subscribers_url":"https://api.github.com/repos/nathwill/chef-systemd/subscribers","subscription_url":"https://api.github.com/repos/nathwill/chef-systemd/subscription","commits_url":"https://api.github.com/repos/nathwill/chef-systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathwill/chef-systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathwill/chef-systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathwill/chef-systemd/contents/{+path}","compare_url":"https://api.github.com/repos/nathwill/chef-systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathwill/chef-systemd/merges","archive_url":"https://api.github.com/repos/nathwill/chef-systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathwill/chef-systemd/downloads","issues_url":"https://api.github.com/repos/nathwill/chef-systemd/issues{/number}","pulls_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/nathwill/chef-systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/nathwill/chef-systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathwill/chef-systemd/labels{/name}","releases_url":"https://api.github.com/repos/nathwill/chef-systemd/releases{/id}","created_at":"2015-06-26T16:30:54Z","updated_at":"2015-06-26T16:37:18Z","pushed_at":"2015-07-05T17:43:40Z","git_url":"git://github.com/nathwill/chef-systemd.git","ssh_url":"git@github.com:nathwill/chef-systemd.git","clone_url":"https://github.com/nathwill/chef-systemd.git","svn_url":"https://github.com/nathwill/chef-systemd","homepage":"","size":184,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"nathwill:master","ref":"master","sha":"5a8bb0345d5a121ad25d507542ffbe5f226c67c1","user":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"repo":{"id":38121590,"name":"chef-systemd","full_name":"nathwill/chef-systemd","owner":{"login":"nathwill","id":371597,"avatar_url":"https://avatars.githubusercontent.com/u/371597?v=3","gravatar_id":"","url":"https://api.github.com/users/nathwill","html_url":"https://github.com/nathwill","followers_url":"https://api.github.com/users/nathwill/followers","following_url":"https://api.github.com/users/nathwill/following{/other_user}","gists_url":"https://api.github.com/users/nathwill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathwill/subscriptions","organizations_url":"https://api.github.com/users/nathwill/orgs","repos_url":"https://api.github.com/users/nathwill/repos","events_url":"https://api.github.com/users/nathwill/events{/privacy}","received_events_url":"https://api.github.com/users/nathwill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathwill/chef-systemd","description":"chef cookbook for systemd","fork":false,"url":"https://api.github.com/repos/nathwill/chef-systemd","forks_url":"https://api.github.com/repos/nathwill/chef-systemd/forks","keys_url":"https://api.github.com/repos/nathwill/chef-systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathwill/chef-systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathwill/chef-systemd/teams","hooks_url":"https://api.github.com/repos/nathwill/chef-systemd/hooks","issue_events_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/events{/number}","events_url":"https://api.github.com/repos/nathwill/chef-systemd/events","assignees_url":"https://api.github.com/repos/nathwill/chef-systemd/assignees{/user}","branches_url":"https://api.github.com/repos/nathwill/chef-systemd/branches{/branch}","tags_url":"https://api.github.com/repos/nathwill/chef-systemd/tags","blobs_url":"https://api.github.com/repos/nathwill/chef-systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathwill/chef-systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathwill/chef-systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathwill/chef-systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathwill/chef-systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/nathwill/chef-systemd/languages","stargazers_url":"https://api.github.com/repos/nathwill/chef-systemd/stargazers","contributors_url":"https://api.github.com/repos/nathwill/chef-systemd/contributors","subscribers_url":"https://api.github.com/repos/nathwill/chef-systemd/subscribers","subscription_url":"https://api.github.com/repos/nathwill/chef-systemd/subscription","commits_url":"https://api.github.com/repos/nathwill/chef-systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathwill/chef-systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathwill/chef-systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathwill/chef-systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathwill/chef-systemd/contents/{+path}","compare_url":"https://api.github.com/repos/nathwill/chef-systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathwill/chef-systemd/merges","archive_url":"https://api.github.com/repos/nathwill/chef-systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathwill/chef-systemd/downloads","issues_url":"https://api.github.com/repos/nathwill/chef-systemd/issues{/number}","pulls_url":"https://api.github.com/repos/nathwill/chef-systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/nathwill/chef-systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/nathwill/chef-systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathwill/chef-systemd/labels{/name}","releases_url":"https://api.github.com/repos/nathwill/chef-systemd/releases{/id}","created_at":"2015-06-26T16:30:54Z","updated_at":"2015-06-26T16:37:18Z","pushed_at":"2015-07-05T17:43:40Z","git_url":"git://github.com/nathwill/chef-systemd.git","ssh_url":"git@github.com:nathwill/chef-systemd.git","clone_url":"https://github.com/nathwill/chef-systemd.git","svn_url":"https://github.com/nathwill/chef-systemd","homepage":"","size":184,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4"},"html":{"href":"https://github.com/nathwill/chef-systemd/pull/4"},"issue":{"href":"https://api.github.com/repos/nathwill/chef-systemd/issues/4"},"comments":{"href":"https://api.github.com/repos/nathwill/chef-systemd/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nathwill/chef-systemd/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/nathwill/chef-systemd/statuses/38a7832678c231e21b6957f66cdfe02a1b8f9de7"}}}}