ish iconish 0.5.1

Impulse Shell
ish is a command-line interface for Impulse and is intended to allow easy programmatic actions on systems in Impulse.

The shell portion of ish is a modified Python shell, so it's possible to use normal Python programming constructs like for, if, and list interpretations.

This README is written in ReST.

Commands

From inside of ish (start with the command 'ish')

# You can get a system by its name and it will only return a single system

>>> mysystem = System.find('thename')

# Or you can search by any parameter of an object, not just its name

# Some parameters are owner, last_modifier, type, and os_name

>>> all_my_systems = System.search(owner='myname')

>>> all_fedora_systems = System.search(os_name='Fedora')

>>> print all_my_systems

[system1, system2, system3]


>>> mysys = all_my_systems[0]

>>> print mysys.name


system1

>>> mysys.os_name

Gentoo

>>> mysys.os_name = "Fedora"

>>> mysys.put()

>>> mysys.os_name


Fedora

impulse-query

The impulse-query command is a quick way to perform a query

impulse-query -t < object type > [-p < param > < param value >]

If no params are given, it will list every object of that type. This may take some time.

last updated on:
February 23rd, 2012, 14:13 GMT
price:
FREE!
developed by:
Ryan Brown
license type:
MIT/X Consortium License 
category:
ROOT \ System \ Shells

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT