|
|
|
|
|
by seorphates
2921 days ago
|
|
Not sure what your platforms are or what your workflows would be but if you have potentially dozens or hundreds of these and you have some level of deterministic target names and, like me, the memory of a dead elephant then customizing a wee wrapper or three can go a long way. I am pretty adverse to switching apps/UIs for doing single tasking items of this sort. Very annoying. For instance for ssh I use a small combo wrap 'ot' (open tab(s)) that opens a terminal tab and parses my args to start terminal tab batches of ssh sessions. Your wrap could be as simple or complex as you need. I parse my args as necessary like: ot lead1(app) lead2(envid) [lead3(tier)] [lead4(instance/role)] as so:
cmdprmpt% ot coolapp dev1 app app1 # will open a single term tab to the coolapp app tier instance 1 leaving off the instance/role will open a tab session to each instance (ot coolapp dev1 db)
leaving off the tier will open a tab to each node on every tier for that app env (ot coolapp dev1)
leaving off the envid doesn't work because that would just be a lot of tabs. Barring that type of approach aliases are definitely your friend. The same could be done for opening browser sessions and/or curl/wgets whatever etc.. Barring that and for anything over, say, 100 targets (or excruciatingly non-deterministic target names) I'd probably have a single file with a bunch of key pairs and wrap against that (or some sort of wee db for 1000's). |
|