~elopio/snappy-tests-job/bug-create-version-flags

« back to all changes in this revision

Viewing changes to source/source.go

  • Committer: Leo Arias
  • Date: 2015-08-21 02:39:02 UTC
  • mfrom: (59.1.3 get_branch)
  • Revision ID: leo.arias@canonical.com-20150821023902-531umktasd5wh9nq
Renamed Run to Get in the source interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
// Sourcer is the interface satisfied by all the source handlers
38
38
type Sourcer interface {
39
 
        Run(string) (string, error)
 
39
        Get(string) (string, error)
40
40
}
41
41
 
42
42
// BzrHandler is a source handler for bazaar
44
44
        util utils.Utilizer
45
45
}
46
46
 
47
 
// Run is the method for getting the source code
48
 
func (handler *BzrHandler) Run(repo string) (string, error) {
 
47
// Get is the method for getting the source code
 
48
func (handler *BzrHandler) Get(repo string) (string, error) {
49
49
        path := filepath.Join(targetPath, strconv.Itoa(os.Getpid()), basePkg)
50
50
 
51
51
        log.Printf("*** Branching %s in %s ***", repo, path)