Add username and password are optional to sftp docs.
This commit is contained in:
parent
2f8d236ee4
commit
268ddb1a14
2 changed files with 10 additions and 7 deletions
|
@ -80,9 +80,9 @@ Activate the extension by adding the following to `config.rb`:
|
||||||
activate :deploy do |deploy|
|
activate :deploy do |deploy|
|
||||||
deploy.method = :ftp
|
deploy.method = :ftp
|
||||||
deploy.host = "ftp.example.com"
|
deploy.host = "ftp.example.com"
|
||||||
|
deploy.path = "/srv/www/site"
|
||||||
deploy.user = "tvaughan"
|
deploy.user = "tvaughan"
|
||||||
deploy.password = "secret"
|
deploy.password = "secret"
|
||||||
deploy.path = "/srv/www/site"
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -94,9 +94,10 @@ Activate the extension by adding the following to `config.rb`:
|
||||||
activate :deploy do |deploy|
|
activate :deploy do |deploy|
|
||||||
deploy.method = :sftp
|
deploy.method = :sftp
|
||||||
deploy.host = "sftp.example.com"
|
deploy.host = "sftp.example.com"
|
||||||
deploy.user = "tvaughan"
|
|
||||||
deploy.password = "secret"
|
|
||||||
deploy.path = "/srv/www/site"
|
deploy.path = "/srv/www/site"
|
||||||
|
# Optional Settings
|
||||||
|
# deploy.user = "tvaughan" # no default
|
||||||
|
# deploy.password = "secret" # no default
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,9 @@ activate :deploy do |deploy|
|
||||||
deploy.method = :ftp
|
deploy.method = :ftp
|
||||||
# host, user, passwword and path *must* be set
|
# host, user, passwword and path *must* be set
|
||||||
deploy.host = "ftp.example.com"
|
deploy.host = "ftp.example.com"
|
||||||
|
deploy.path = "/srv/www/site"
|
||||||
deploy.user = "tvaughan"
|
deploy.user = "tvaughan"
|
||||||
deploy.password = "secret"
|
deploy.password = "secret"
|
||||||
deploy.path = "/srv/www/site"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# To deploy the build directory to a remote host via sftp:
|
# To deploy the build directory to a remote host via sftp:
|
||||||
|
@ -86,9 +86,11 @@ activate :deploy do |deploy|
|
||||||
deploy.method = :sftp
|
deploy.method = :sftp
|
||||||
# host, user, passwword and path *must* be set
|
# host, user, passwword and path *must* be set
|
||||||
deploy.host = "sftp.example.com"
|
deploy.host = "sftp.example.com"
|
||||||
deploy.user = "tvaughan"
|
|
||||||
deploy.password = "secret"
|
|
||||||
deploy.path = "/srv/www/site"
|
deploy.path = "/srv/www/site"
|
||||||
|
# user is optional (no default)
|
||||||
|
deploy.user = "tvaughan"
|
||||||
|
# password is optional (no default)
|
||||||
|
deploy.password = "secret"
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
end
|
end
|
||||||
|
@ -117,7 +119,7 @@ EOF
|
||||||
end
|
end
|
||||||
when :ftp
|
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 ftp deploy method requires host, user, password, and path to be set."
|
print_usage_and_die "The ftp deploy method requires host, path, user, and password to be set."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue