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

Function installKite

kitectl/command/install.go:265–277  ·  view source on GitHub ↗

installKite moves the .kite bundle into ~/kd/kites.

(bundlePath, repoName, version string)

Source from the content-addressed store, hash-verified

263
264// installKite moves the .kite bundle into ~/kd/kites.
265func installKite(bundlePath, repoName, version string) error {
266 kiteHome, err := kitekey.KiteHome()
267 if err != nil {
268 return err
269 }
270
271 kitesPath := filepath.Join(kiteHome, "kites")
272 repoPath := filepath.Join(kitesPath, repoName)
273 versionPath := filepath.Join(repoPath, version)
274
275 os.MkdirAll(repoPath, 0700)
276 return os.Rename(bundlePath, versionPath)
277}
278
279// isBinaryFile returns true if the path is the path of the binary file
280// in application bundle. Example: fs-0.0.1.kite/bin/fs

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected