Skip to content

Allow username/password to be provided in configuration#47

Open
WattyRev wants to merge 2 commits into
inossidabile:masterfrom
WattyRev:master
Open

Allow username/password to be provided in configuration#47
WattyRev wants to merge 2 commits into
inossidabile:masterfrom
WattyRev:master

Conversation

@WattyRev
Copy link
Copy Markdown

@WattyRev WattyRev commented Jul 4, 2018

It seems like a nice option to be able to pass in a username/password instead of putting it in a .ftppass file. With this change, you could do something like:

grunt ftpush --my-username=watty --my-password=hunter2

With a configuration of

ftpush: {
            build: {
                auth: {
                    host: "myhost",
                    port: 21,
                    username: grunt.option("my-username"),
                    password: grunt.option("my-password")
                },
                ...
            }
        }

This change does not impact the previous key process, but will override that process if both username and password are provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant