{"action":"created","comment":{"url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/comments/62542840","id":62542840,"diff_hunk":"@@ -82,6 +82,43 @@ def project(name, options = {})\n       def delete_project(name, options = {})\n         objectify delete(\"/project/#{name}\", options)\n       end\n+\n+      # Configure a project\n+      #\n+      # @see http://rundeck.org/docs/api/index.html#project-configuration\n+      #   Rundeck API documentation for 'PUT /api/11/project/[NAME]/config'\n+      #   endpoint\n+      #\n+      # @example\n+      #   Rundeck.configure_project('my_project',\n+      #         '{\"resources.source.1.type\": \"file\"}')\n+      #\n+      # @param  [String] name The project name\n+      # @param  [String] config The configuration\n+      # @param  [String] format The project creation format. 'json|xml|text',\n+      #   defaults to 'json'\n+      # @!macro options\n+      # @return [Rundeck::ObjectifiedHash]\n+      # @!macro exceptions\n+      def configure_project(name, config, format = 'json', options = {})\n+        options[:headers] = {} if options[:headers].nil?\n+        options[:headers] = if format == 'json'\n+                              options[:headers].merge!(\n+                                'Content-Type' => 'application/json')\n+                            elsif format == 'xml'\n+                              options[:headers].merge!(\n+                                'Content-Type' => 'application/xml')\n+                            elsif format == 'text'\n+                              options[:headers].merge!(\n+                                'Content-Type' => 'text/plain')\n+                            else\n+                              fail Error::InvalidAttributes,\n+                              'format must be json, text or xml'","path":"lib/rundeck/client/project.rb","position":35,"original_position":35,"commit_id":"81fdaa94ce132e0c0fbfbd54bfc3d9318c7641b8","original_commit_id":"81fdaa94ce132e0c0fbfbd54bfc3d9318c7641b8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Align the parameters of a method call if they span more than one line.","created_at":"2016-05-09T17:56:08Z","updated_at":"2016-05-09T17:56:08Z","html_url":"https://github.com/dblessing/rundeck-ruby/pull/41#discussion_r62542840","pull_request_url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/comments/62542840"},"html":{"href":"https://github.com/dblessing/rundeck-ruby/pull/41#discussion_r62542840"},"pull_request":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41","id":69384391,"html_url":"https://github.com/dblessing/rundeck-ruby/pull/41","diff_url":"https://github.com/dblessing/rundeck-ruby/pull/41.diff","patch_url":"https://github.com/dblessing/rundeck-ruby/pull/41.patch","issue_url":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/41","number":41,"state":"open","locked":false,"title":"Add configure_project endpoint","user":{"login":"snebel29","id":9039085,"avatar_url":"https://avatars.githubusercontent.com/u/9039085?v=3","gravatar_id":"","url":"https://api.github.com/users/snebel29","html_url":"https://github.com/snebel29","followers_url":"https://api.github.com/users/snebel29/followers","following_url":"https://api.github.com/users/snebel29/following{/other_user}","gists_url":"https://api.github.com/users/snebel29/gists{/gist_id}","starred_url":"https://api.github.com/users/snebel29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snebel29/subscriptions","organizations_url":"https://api.github.com/users/snebel29/orgs","repos_url":"https://api.github.com/users/snebel29/repos","events_url":"https://api.github.com/users/snebel29/events{/privacy}","received_events_url":"https://api.github.com/users/snebel29/received_events","type":"User","site_admin":false},"body":"Add configure_project endpoint http://rundeck.org/2.2.2/api/index.html#project-configuration","created_at":"2016-05-09T17:56:04Z","updated_at":"2016-05-09T17:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2738bb28f42d8c7f9b34e4b87e294266819775f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41/commits","review_comments_url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41/comments","review_comment_url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/41/comments","statuses_url":"https://api.github.com/repos/dblessing/rundeck-ruby/statuses/81fdaa94ce132e0c0fbfbd54bfc3d9318c7641b8","head":{"label":"snebel29:configure_project","ref":"configure_project","sha":"81fdaa94ce132e0c0fbfbd54bfc3d9318c7641b8","user":{"login":"snebel29","id":9039085,"avatar_url":"https://avatars.githubusercontent.com/u/9039085?v=3","gravatar_id":"","url":"https://api.github.com/users/snebel29","html_url":"https://github.com/snebel29","followers_url":"https://api.github.com/users/snebel29/followers","following_url":"https://api.github.com/users/snebel29/following{/other_user}","gists_url":"https://api.github.com/users/snebel29/gists{/gist_id}","starred_url":"https://api.github.com/users/snebel29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snebel29/subscriptions","organizations_url":"https://api.github.com/users/snebel29/orgs","repos_url":"https://api.github.com/users/snebel29/repos","events_url":"https://api.github.com/users/snebel29/events{/privacy}","received_events_url":"https://api.github.com/users/snebel29/received_events","type":"User","site_admin":false},"repo":{"id":56257531,"name":"rundeck-ruby","full_name":"snebel29/rundeck-ruby","owner":{"login":"snebel29","id":9039085,"avatar_url":"https://avatars.githubusercontent.com/u/9039085?v=3","gravatar_id":"","url":"https://api.github.com/users/snebel29","html_url":"https://github.com/snebel29","followers_url":"https://api.github.com/users/snebel29/followers","following_url":"https://api.github.com/users/snebel29/following{/other_user}","gists_url":"https://api.github.com/users/snebel29/gists{/gist_id}","starred_url":"https://api.github.com/users/snebel29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snebel29/subscriptions","organizations_url":"https://api.github.com/users/snebel29/orgs","repos_url":"https://api.github.com/users/snebel29/repos","events_url":"https://api.github.com/users/snebel29/events{/privacy}","received_events_url":"https://api.github.com/users/snebel29/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snebel29/rundeck-ruby","description":"Rundeck Ruby Client - A Ruby wrapper around the Rundeck API","fork":true,"url":"https://api.github.com/repos/snebel29/rundeck-ruby","forks_url":"https://api.github.com/repos/snebel29/rundeck-ruby/forks","keys_url":"https://api.github.com/repos/snebel29/rundeck-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snebel29/rundeck-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snebel29/rundeck-ruby/teams","hooks_url":"https://api.github.com/repos/snebel29/rundeck-ruby/hooks","issue_events_url":"https://api.github.com/repos/snebel29/rundeck-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/snebel29/rundeck-ruby/events","assignees_url":"https://api.github.com/repos/snebel29/rundeck-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/snebel29/rundeck-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/snebel29/rundeck-ruby/tags","blobs_url":"https://api.github.com/repos/snebel29/rundeck-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snebel29/rundeck-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snebel29/rundeck-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/snebel29/rundeck-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snebel29/rundeck-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/snebel29/rundeck-ruby/languages","stargazers_url":"https://api.github.com/repos/snebel29/rundeck-ruby/stargazers","contributors_url":"https://api.github.com/repos/snebel29/rundeck-ruby/contributors","subscribers_url":"https://api.github.com/repos/snebel29/rundeck-ruby/subscribers","subscription_url":"https://api.github.com/repos/snebel29/rundeck-ruby/subscription","commits_url":"https://api.github.com/repos/snebel29/rundeck-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/snebel29/rundeck-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/snebel29/rundeck-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/snebel29/rundeck-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/snebel29/rundeck-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/snebel29/rundeck-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snebel29/rundeck-ruby/merges","archive_url":"https://api.github.com/repos/snebel29/rundeck-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snebel29/rundeck-ruby/downloads","issues_url":"https://api.github.com/repos/snebel29/rundeck-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/snebel29/rundeck-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/snebel29/rundeck-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/snebel29/rundeck-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snebel29/rundeck-ruby/labels{/name}","releases_url":"https://api.github.com/repos/snebel29/rundeck-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/snebel29/rundeck-ruby/deployments","created_at":"2016-04-14T17:37:14Z","updated_at":"2016-04-14T17:37:15Z","pushed_at":"2016-05-09T17:55:34Z","git_url":"git://github.com/snebel29/rundeck-ruby.git","ssh_url":"git@github.com:snebel29/rundeck-ruby.git","clone_url":"https://github.com/snebel29/rundeck-ruby.git","svn_url":"https://github.com/snebel29/rundeck-ruby","homepage":"http://blessing.io/rundeck-ruby/","size":466,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"dblessing:master","ref":"master","sha":"4faa9c7ebe59408ed92e91d68bd05cd9e8706dd2","user":{"login":"dblessing","id":2394772,"avatar_url":"https://avatars.githubusercontent.com/u/2394772?v=3","gravatar_id":"","url":"https://api.github.com/users/dblessing","html_url":"https://github.com/dblessing","followers_url":"https://api.github.com/users/dblessing/followers","following_url":"https://api.github.com/users/dblessing/following{/other_user}","gists_url":"https://api.github.com/users/dblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/dblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblessing/subscriptions","organizations_url":"https://api.github.com/users/dblessing/orgs","repos_url":"https://api.github.com/users/dblessing/repos","events_url":"https://api.github.com/users/dblessing/events{/privacy}","received_events_url":"https://api.github.com/users/dblessing/received_events","type":"User","site_admin":false},"repo":{"id":23269362,"name":"rundeck-ruby","full_name":"dblessing/rundeck-ruby","owner":{"login":"dblessing","id":2394772,"avatar_url":"https://avatars.githubusercontent.com/u/2394772?v=3","gravatar_id":"","url":"https://api.github.com/users/dblessing","html_url":"https://github.com/dblessing","followers_url":"https://api.github.com/users/dblessing/followers","following_url":"https://api.github.com/users/dblessing/following{/other_user}","gists_url":"https://api.github.com/users/dblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/dblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblessing/subscriptions","organizations_url":"https://api.github.com/users/dblessing/orgs","repos_url":"https://api.github.com/users/dblessing/repos","events_url":"https://api.github.com/users/dblessing/events{/privacy}","received_events_url":"https://api.github.com/users/dblessing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dblessing/rundeck-ruby","description":"Rundeck Ruby Client - A Ruby wrapper around the Rundeck API","fork":false,"url":"https://api.github.com/repos/dblessing/rundeck-ruby","forks_url":"https://api.github.com/repos/dblessing/rundeck-ruby/forks","keys_url":"https://api.github.com/repos/dblessing/rundeck-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dblessing/rundeck-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dblessing/rundeck-ruby/teams","hooks_url":"https://api.github.com/repos/dblessing/rundeck-ruby/hooks","issue_events_url":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/dblessing/rundeck-ruby/events","assignees_url":"https://api.github.com/repos/dblessing/rundeck-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/dblessing/rundeck-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/dblessing/rundeck-ruby/tags","blobs_url":"https://api.github.com/repos/dblessing/rundeck-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dblessing/rundeck-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dblessing/rundeck-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/dblessing/rundeck-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dblessing/rundeck-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/dblessing/rundeck-ruby/languages","stargazers_url":"https://api.github.com/repos/dblessing/rundeck-ruby/stargazers","contributors_url":"https://api.github.com/repos/dblessing/rundeck-ruby/contributors","subscribers_url":"https://api.github.com/repos/dblessing/rundeck-ruby/subscribers","subscription_url":"https://api.github.com/repos/dblessing/rundeck-ruby/subscription","commits_url":"https://api.github.com/repos/dblessing/rundeck-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/dblessing/rundeck-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/dblessing/rundeck-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/dblessing/rundeck-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/dblessing/rundeck-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dblessing/rundeck-ruby/merges","archive_url":"https://api.github.com/repos/dblessing/rundeck-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dblessing/rundeck-ruby/downloads","issues_url":"https://api.github.com/repos/dblessing/rundeck-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/dblessing/rundeck-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/dblessing/rundeck-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dblessing/rundeck-ruby/labels{/name}","releases_url":"https://api.github.com/repos/dblessing/rundeck-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/dblessing/rundeck-ruby/deployments","created_at":"2014-08-24T00:25:00Z","updated_at":"2016-04-29T17:27:05Z","pushed_at":"2016-05-09T17:56:04Z","git_url":"git://github.com/dblessing/rundeck-ruby.git","ssh_url":"git@github.com:dblessing/rundeck-ruby.git","clone_url":"https://github.com/dblessing/rundeck-ruby.git","svn_url":"https://github.com/dblessing/rundeck-ruby","homepage":"http://blessing.io/rundeck-ruby/","size":1310,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":16,"forks":6,"open_issues":16,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41"},"html":{"href":"https://github.com/dblessing/rundeck-ruby/pull/41"},"issue":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/41"},"comments":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/dblessing/rundeck-ruby/statuses/81fdaa94ce132e0c0fbfbd54bfc3d9318c7641b8"}}}}