org.gridgain.visor.commands.deploy.Packet.scala Maven / Gradle / Ivy
/*
Copyright (C) GridGain Systems. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
* ___ _________________________ ________
* __ | / /____ _/__ ___/__ __ \___ __ \
* __ | / / __ / _____ \ _ / / /__ /_/ /
* __ |/ / __/ / ____/ / / /_/ / _ _, _/
* _____/ /___/ /____/ \____/ /_/ |_|
*
*/
package org.gridgain.visor.commands
/**
* ==Overview==
* Visor 'deploy' command implementation.
*
* ==Help==
* {{{
* +---------------------------------------------------+
* | deploy | Copies file or directory to remote host. |
* | | Command relies on SFTP protocol. |
* +---------------------------------------------------+
* }}}
*
* ====Specification====
* {{{
* deploy "-h={{:}@}{:} {-u=}
* {-p=} {-k=} -s= {-d}"
* }}}
*
* ====Arguments====
* {{{
* -h={{:}@}{:}
* Host specification.
*
* can be a hostname, IP or range of IPs.
* Example of range is 192.168.1.100~150,
* which means all IPs from 192.168.1.100 to 192.168.1.150 inclusively.
*
* Default port number is 22.
*
* This option can be provided multiple times.
* -u=
* Default username.
* Used if specification doesn't contain username.
* If default is not provided as well, current local username will be used.
* -p=
* Default password.
* Used if specification doesn't contain password.
* If default is not provided as well, it will be asked interactively.
* -k=
* Path to private key file.
* If provided, it will be used for all specifications that doesn't contain password.
* -s=
* Source path.
* -d=
* Destination path (relative to GRIDGAIN_HOME).
* If not provided, files will be copied to the root of GRIDGAIN_HOME.
* }}}
*
* ====Examples====
* {{{
* deploy "-h=uname:passwd@host -s=/local/path -d=/remote/path"
* Copies file or directory to remote host (password authentication).
* deploy "-h=uname@host -k=ssh-key.pem -s=/local/path -d=/remote/path"
* Copies file or directory to remote host (private key authentication).
* }}}
*/
package object deploy
© 2015 - 2025 Weber Informatics LLC | Privacy Policy