GitHub PullRequestReviewCommentEvent at 2014-01-16 23:38:24
Repository: razor-server
Actor: daniel-pittman
Payload: {"comment":{"url":"https://api.github.com/repos/puppetlabs/razor-server/pulls/comments/8952544","id":8952544,"diff_hunk":"@@ -699,6 +699,27 @@ def self.command(name, &block)\n     { :result => 'reboot request queued' }\n   end\n \n+  command :set_node_desired_power_state do |data|\n+    data['name'] or\n+      error 400, :error => \"Supply 'name' to indicate which node to edit\"\n+\n+    check_permissions! \"commands:set-node-desired-power-state:#{data['name']}\"\n+\n+    node = Razor::Data::Node.find_by_name(data['name']) or\n+      error 404, :error => \"node #{data['name']} does not exist\"\n+\n+    node.desired_power_state = data['to']","path":"app.rb","position":13,"original_position":13,"commit_id":"844932e5e917d9aee60fd8d41bd7c79423109dec","original_commit_id":"844932e5e917d9aee60fd8d41bd7c79423109dec","user":{"login":"daniel-pittman","id":306753,"avatar_url":"https://gravatar.com/avatar/611a7f168a2de85fdbc1a2ab3aa502ba?d=https%3A%2F%2Fidenticons.github.com%2F557c1e761650f60d9c493d5ee04d6185.png&r=x","gravatar_id":"611a7f168a2de85fdbc1a2ab3aa502ba","url":"https://api.github.com/users/daniel-pittman","html_url":"https://github.com/daniel-pittman","followers_url":"https://api.github.com/users/daniel-pittman/followers","following_url":"https://api.github.com/users/daniel-pittman/following{/other_user}","gists_url":"https://api.github.com/users/daniel-pittman/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-pittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-pittman/subscriptions","organizations_url":"https://api.github.com/users/daniel-pittman/orgs","repos_url":"https://api.github.com/users/daniel-pittman/repos","events_url":"https://api.github.com/users/daniel-pittman/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-pittman/received_events","type":"User","site_admin":false},"body":"OK.  Given your other comment below about database content, I am just going to \"enum\" this end to end, and use on and off explicitly everywhere.  It isn't much more trouble.  Should have that done shortly.","created_at":"2014-01-16T23:38:24Z","updated_at":"2014-01-16T23:38:24Z","html_url":"https://github.com/puppetlabs/razor-server/pull/140#discussion_r8952544","pull_request_url":"https://api.github.com/repos/puppetlabs/razor-server/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/razor-server/pulls/comments/8952544"},"html":{"href":"https://github.com/puppetlabs/razor-server/pull/140#discussion_r8952544"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/razor-server/pulls/140"}}}}