Reputation: 37904
I have a fabfile
env.hosts = [
# huge list, 80 hostnames
]
def dm():
with cd('/home/project/application'):
# how to get the actual hostname here, so I can run certain commands depending on hostname?
any ideas? fabric documentation gives me nothing on this
Upvotes: 3
Views: 1205