Package conary :: Package build :: Module source :: Class addGitSnapshot
[hide private]
[frames] | no frames]

Class addGitSnapshot

source code

  action.Action --+                    
                  |                    
action.RecipeAction --+                
                      |                
             _AnySource --+            
                          |            
                    _Source --+        
                              |        
                     addArchive --+    
                                  |    
                   _RevisionControl --+
                                      |
                                     addGitSnapshot

NAME

r.addGitSnapshot() - Adds a snapshot from a git repository.

SYNOPSIS

r.addGitSnapshot([url,] [tag=,])

DESCRIPTION

The r.addGitSnapshot() class extracts sources from a git repository, places a tarred, bzipped archive into the source component, and extracts that into the build directory in a manner similar to r.addArchive.

KEYWORDS

The following keywords are recognized by r.addAction:

dir : Specify a directory to change into prior to executing the command. An absolute directory specified as the dir value is considered relative to %(destdir)s.

package : (None) If set, must be a string that specifies the package (package='packagename'), component (package=':componentname'), or package and component (package='packagename:componentname') in which to place the files added while executing this command. Previously-specified PackageSpec or ComponentSpec lines will override the package specification, since all package and component specifications are considered in strict order as provided by the recipe

tag : Git tag to use for the snapshot.

Instance Methods [hide private]
 
getFilename(self) source code
 
createArchive(self, lookasideDir) source code
 
updateArchive(self, lookasideDir) source code
 
showInfo(self, lookasideDir) source code
 
createSnapshot(self, lookasideDir, target) source code
 
__init__(self, recipe, url, tag='HEAD', **kwargs) source code

Inherited from _RevisionControl: doDownload, fetch

Inherited from addArchive: do

Inherited from _Source: doAction, doPrep, fetchLocal, getPath

Inherited from action.RecipeAction: doSuggestAutoBuildReqs, init_error

Inherited from action.Action: addArgs

Inherited from action.Action (private): _applyDefaults

Static Methods [hide private]

Inherited from addArchive (private): _cpioOwners, _tarOwners

Class Variables [hide private]
  name = 'git'

Inherited from _RevisionControl: keywords

Method Details [hide private]

showInfo(self, lookasideDir)

source code 
Overrides: _RevisionControl.showInfo

__init__(self, recipe, url, tag='HEAD', **kwargs)
(Constructor)

source code 
Overrides: addArchive.__init__
(inherited documentation)