Add remote_topgrade_path configuration option
This commit is contained in:
@@ -166,6 +166,7 @@ pub struct ConfigFile {
|
||||
disable: Option<Vec<Step>>,
|
||||
ignore_failures: Option<Vec<Step>>,
|
||||
remote_topgrades: Option<Vec<String>>,
|
||||
remote_topgrade_path: Option<String>,
|
||||
ssh_arguments: Option<String>,
|
||||
git_arguments: Option<String>,
|
||||
tmux_arguments: Option<String>,
|
||||
@@ -466,6 +467,11 @@ impl Config {
|
||||
&self.config_file.remote_topgrades
|
||||
}
|
||||
|
||||
/// Path to Topgrade executable used for all remote hosts
|
||||
pub fn remote_topgrade_path(&self) -> &str {
|
||||
self.config_file.remote_topgrade_path.as_deref().unwrap_or("topgrade")
|
||||
}
|
||||
|
||||
/// Extra SSH arguments
|
||||
pub fn ssh_arguments(&self) -> &Option<String> {
|
||||
&self.config_file.ssh_arguments
|
||||
|
||||
Reference in New Issue
Block a user