This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Total": 1, | |
"Start": 0, | |
"Rows": [ | |
{ | |
"automatic": {}, | |
"chef_environment": "_default", | |
"chef_type": "node", | |
"default": {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/grubby/grubby/interpreter/vm" | |
) | |
func main() { | |
rvm := vm.NewVM("rvm") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build debug | |
package chef | |
import "log" | |
func debug(fmt string, args ...interface{}) { | |
log.Printf(fmt, args...) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014/10/04 21:37:26 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /nodes/ranjib -- PUT | |
2014/10/04 21:37:26 [INFO] [main] EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastmail = Services::Endpoint.new 'fastmail', | |
ip: '1.1.104.4', | |
proto: 'tcp', | |
port: 25 | |
sysmail = Services::Endpoint.new 'sysmail', | |
ip: '1.1.104.5', | |
proto: 'tcp', | |
port: 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff -u | |
diff --git a/http_test.go b/http_test.go | |
index 9ec902a..cf9a439 100644 | |
--- a/http_test.go | |
+++ b/http_test.go | |
@@ -7,6 +7,8 @@ import ( | |
"encoding/pem" | |
"errors" | |
"fmt" | |
+ . "github.com/ctdk/goiardi/chefcrypto" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go tool cover -func=coverage | |
github.com/go-chef/chef/authentication.go: GenerateSignature 100.0% | |
github.com/go-chef/chef/authentication.go: privateEncrypt 66.7% | |
github.com/go-chef/chef/authentication.go: HashStr 100.0% | |
github.com/go-chef/chef/authentication.go: Base64BlockEncode 100.0% | |
github.com/go-chef/chef/cookbook.go: String 100.0% | |
github.com/go-chef/chef/cookbook.go: versionParams 100.0% | |
github.com/go-chef/chef/cookbook.go: Get 100.0% | |
github.com/go-chef/chef/cookbook.go: GetAvailableVersions 100.0% | |
github.com/go-chef/chef/cookbook.go: GetVersion 0.0% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014/07/31 10:26:09 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /cookbooks -- GET | |
2014/07/31 10:26:10 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /sandboxes -- POST | |
2014/07/31 10:26:10 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /file_store/0008a688289b378a83be683edc066797 -- PUT | |
2014/07/31 10:26:10 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /file_store/a3ae92cef5d2bd568dac47fb31613192 -- PUT | |
2014/07/31 10:26:10 [DEBUG] [main] (goiardi.go:(*interceptHandler).ServeHTTP:186) Serving /file_store/0f9e0db39de2dc2f654333c865f3b0ca -- PUT |