Skip to content

Instantly share code, notes, and snippets.

View spheromak's full-sized avatar
🕵️‍♂️

Jesse Nelson spheromak

🕵️‍♂️
View GitHub Profile
{
"Total": 1,
"Start": 0,
"Rows": [
{
"automatic": {},
"chef_environment": "_default",
"chef_type": "node",
"default": {},
package main
import (
"log"
"github.com/grubby/grubby/interpreter/vm"
)
func main() {
rvm := vm.NewVM("rvm")
// +build debug
package chef
import "log"
func debug(fmt string, args ...interface{}) {
log.Printf(fmt, args...)
}
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
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
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
$ 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"
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%
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