~fgimenez/snappy-cloud-image/list-private-images

« back to all changes in this revision

Viewing changes to utils/utils.go

  • Committer: Federico Gimenez
  • Date: 2015-09-11 07:28:32 UTC
  • mfrom: (63.1.3 remove-branches)
  • Revision ID: fgimenez@canonical.com-20150911072832-9fg7uzrxuxq2bhwg
mergedĀ lp:~fgimenez/snappy-tests-job/remove-branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
type Utilizer interface {
31
31
        PrepareTargetDir(string) error
32
32
        ExecCommand(*ExecCommandParams) (output string, err error)
 
33
        RemoveAll(path string) error
33
34
}
34
35
 
35
36
// BasicHandler is a utility type
113
114
func (params *ExecCommandParams) AppendEnv(value string) {
114
115
        params.env = append([]string{value}, params.env...)
115
116
}
 
117
 
 
118
// RemoveAll is a proxy to the os.RemoveAll method
 
119
func (u *BasicHandler) RemoveAll(path string) error {
 
120
        return os.RemoveAll(path)
 
121
}