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

Class MakeDirs

source code

  action.Action --+            
                  |            
action.RecipeAction --+        
                      |        
            BuildAction --+    
                          |    
                _FileAction --+
                              |
                             MakeDirs

NAME

r.MakeDirs() - Creates directories

SYNOPSIS

r.MakeDirs(dir(s), [component], [mode])

DESCRIPTION

The r.MakeDirs() class is called from within a Conary recipe to create directories.

KEYWORDS

The r.MakeDirs() class accepts the following keywords, with default values shown in parentheses when applicable:

component : (None) Set to component name if package is responsible for the directory.

mode : (0755) Specify directory access permissions

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.

EXAMPLES

r.MakeDirs('/misc', component='runtime')

Demonstrates r.MakeDirs() creating the /misc directory while specifying the :runtime component is responsible for this directory.

r.MakeDirs('/afs', mode=0700)

Demonstrates r.MakeDirs() creating the /afs directory and setting access permissions to 0700.

Instance Methods [hide private]
 
do(self, macros)
Do the build action
source code
 
__init__(self, recipe, *args, **keywords) source code

Inherited from _FileAction: chmod, setComponents

Inherited from BuildAction: doAction, initManifest, missingFiles

Inherited from action.RecipeAction: doPrep, doSuggestAutoBuildReqs, init_error

Inherited from action.Action: addArgs

Inherited from action.Action (private): _applyDefaults

Class Variables [hide private]
  keywords = {'mode': 493}

Inherited from _FileAction: useExplicitManifest

Method Details [hide private]

do(self, macros)

source code 
Do the build action
Overrides: BuildAction.do
(inherited documentation)

__init__(self, recipe, *args, **keywords)
(Constructor)

source code 
Overrides: _FileAction.__init__