I'm currently specifying a connection override per constructor call: fabric2.Connection(…, config=invoke.Config(overrides={"shell": "bash"}))
. How would I translate this to a configuration file, so that I don't have to configure it per call?
Fabric doesn't seem to have a way to set Connection
parameters (connect_kwargs
is for SSHClient.connect
), and doesn't mention taking into account any Invoke configuration files. The closest thing I can get to illustrate the issue is just this fabric.yml
, which does nothing:
connection:
overrides:
shell: bash