Make password optional for sftp deployment
Some people use public key authentication
This commit is contained in:
parent
336fcd3c0e
commit
6eed387731
1 changed files with 6 additions and 2 deletions
|
@ -115,9 +115,13 @@ EOF
|
||||||
if (!options.host || !options.path)
|
if (!options.host || !options.path)
|
||||||
print_usage_and_die "The rsync deploy method requires host and path to be set."
|
print_usage_and_die "The rsync deploy method requires host and path to be set."
|
||||||
end
|
end
|
||||||
when :ftp, :sftp
|
when :ftp
|
||||||
if (!options.host || !options.user || !options.password || !options.path)
|
if (!options.host || !options.user || !options.password || !options.path)
|
||||||
print_usage_and_die "The #{options.method} method requires host, user, password, and path to be set."
|
print_usage_and_die "The ftp deploy method requires host, user, password, and path to be set."
|
||||||
|
end
|
||||||
|
when :sftp
|
||||||
|
if (!options.host || !options.user || !options.path)
|
||||||
|
print_usage_and_die "The sftp deploy method requires host, user and path to be set."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue