Giter Club home page Giter Club logo

Comments (4)

fschulze avatar fschulze commented on July 30, 2024

Try aws -c etc/foo.conf ssh bar

from ploy.

tomster avatar tomster commented on July 30, 2024

sure, that works, of course. but that's not really convenient to use for rsync and/or sftp.

the whole point of assh is convenience in the first place :)

i looked into the implementation but couldn't find a ready means of fixing this, short of using argparse in assh itself, which i'd consider a hack...

from ploy.

tomster avatar tomster commented on July 30, 2024

i've debugged this a bit more and it seems the bug is bigger than initially expected...

in fact the whole -c | --config feature seems to be broken, the values passed into the AWS.__init__ always take precedence, the value from the command line arguments is never taken into account!

it seems that this is triggered by AWS.config being a lazy property that only consults the value of self.configfile which at this point has already been initialized with the values passed into __init__ before parsing of the args has happened.

try renaming any aws.conf you have in any project you're using mr.awsome in and I dare you to get it working with -c :-)

from ploy.

fschulze avatar fschulze commented on July 30, 2024

My proposed solution works for rsync, because it allows setting a whole command for ssh. For things like scp you have to specify a script and can't use any options, so fixing the option somehow wouldn't work anyway. You can only get scp working by creating a script which uses ploy ... ssh with the correct options.

from ploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.