MCPcopy Index your code
hub / github.com/koding/kite / getBundlePath

Function getBundlePath

kitectl/command/uninstall.go:74–80  ·  view source on GitHub ↗

getBundlePath returns the bundle path of a given kite. Example: "adsf-1.2.3" -> "~/.kd/kites/asdf-1.2.3.kite"

(fullKiteName string)

Source from the content-addressed store, hash-verified

72// getBundlePath returns the bundle path of a given kite.
73// Example: "adsf-1.2.3" -> "~/.kd/kites/asdf-1.2.3.kite"
74func getBundlePath(fullKiteName string) (string, error) {
75 kiteHome, err := kitekey.KiteHome()
76 if err != nil {
77 return "", err
78 }
79 return filepath.Join(kiteHome, "kites", fullKiteName), nil
80}
81
82// isInstalled returns true if the kite is installed.
83func isInstalled(fullKiteName string) (bool, error) {

Callers 2

RunMethod · 0.85
isInstalledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected