SCons :: Action :: CommandAction :: Class CommandAction
[hide private]
[frames] | no frames]

Class CommandAction

source code

object --+        
         |        
ActionBase --+    
             |    
 _ActionAction --+
                 |
                CommandAction
Known Subclasses:

Class for command-execution actions.
Instance Methods [hide private]
 
__init__(self, cmd, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
process(self, target, source, env, executor=None) source code
 
strfunction(self, target, source, env, executor=None) source code
 
execute(self, target, source, env, executor=None)
Execute a command action.
source code
 
get_presig(self, target, source, env, executor=None)
Return the signature contents of this action's command line.
source code
 
get_implicit_deps(self, target, source, env, executor=None) source code

Inherited from _ActionAction: __call__, print_cmd_line

Inherited from ActionBase: __add__, __eq__, __radd__, batch_key, genstring, get_contents, get_targets, get_varlist, no_batch_key, presub_lines

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmd, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

execute(self, target, source, env, executor=None)

source code 

Execute a command action.

This will handle lists of commands as well as individual commands, because construction variable substitution may turn a single "command" into a list. This means that this class can actually handle lists of commands, even though that's not how we use it externally.

get_presig(self, target, source, env, executor=None)

source code 

Return the signature contents of this action's command line.

This strips $(-$) and everything in between the string, since those parts don't affect signatures.