MCPcopy Create free account
hub / github.com/Masterminds/glide / WriteFile

Method WriteFile

cfg/lock.go:75–81  ·  view source on GitHub ↗

WriteFile writes a Glide lock file. This is a convenience function that marshals the YAML and then writes it to the given file. If the file exists, it will be clobbered.

(lockpath string)

Source from the content-addressed store, hash-verified

73// This is a convenience function that marshals the YAML and then writes it to
74// the given file. If the file exists, it will be clobbered.
75func (lf *Lockfile) WriteFile(lockpath string) error {
76 o, err := lf.Marshal()
77 if err != nil {
78 return err
79 }
80 return ioutil.WriteFile(lockpath, o, 0666)
81}
82
83// Clone returns a clone of Lockfile
84func (lf *Lockfile) Clone() *Lockfile {

Callers 9

UpdateFunction · 0.95
writeLockFunction · 0.95
writeLockFunction · 0.45
ConfigWizardFunction · 0.45
RemoveFunction · 0.45
CreateFunction · 0.45
MirrorsRemoveFunction · 0.45
GetFunction · 0.45

Calls 1

MarshalMethod · 0.95

Tested by

no test coverage detected