Package comodit_client :: Package api :: Module application :: Class Action

Class Action


An handler's action.


See Also: Handler

Instance Methods
 
show(self, indent=0)
Prints this action's state to standard output in a user-friendly way.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

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

Properties
string type
Action's type.
string resource
The application resource this action is applied on.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints this action's state to standard output in a user-friendly way.

Parameters:
  • indent (int) - The number of spaces to put in front of each displayed line.

Property Details

type

Action's type. Possible values are 'update', 'execute', 'restart' and 'reload'.

Get Method:
unreachable.type(self) - Action's type.
Type:
string

resource

The application resource this action is applied on. This may be a service or a file. Resources are referred to using the following notation: type://name where type is resource type (file or service) and name is resource's name.

Get Method:
unreachable.resource(self) - The application resource this action is applied on.
Type:
string