@@ -11,22 +11,25 @@ internal class ConfigSettings
1111 private const string TentacleRoleConfigName = "TentacleRole" ;
1212 private const string TentacleDeploymentsPathConfigName = "Deployments" ;
1313 private const string TentacleInstallPathConfigName = "Install" ;
14+ private const string TentacleMachineNameSuffixConfigName = "TentacleMachineNameSuffix" ;
1415
15- private static readonly string [ ] ConfigSettingsNames = new [ ] { OctopusServerConfigName , OctopusApiKeyConfigName , TentacleEnvironmentConfigName , TentacleRoleConfigName } ;
16+ private static readonly string [ ] ConfigSettingsNames = new [ ] { OctopusServerConfigName , OctopusApiKeyConfigName , TentacleEnvironmentConfigName , TentacleRoleConfigName , TentacleMachineNameSuffixConfigName } ;
1617
1718 private static string _octopusServer ;
1819 private static string _octopusApiKey ;
1920 private static string _tentacleEnvironment ;
2021 private static string _tentacleRole ;
22+ private readonly string _tentacleMachineNameSuffix ;
2123 private readonly string _tentacleDeploymentsPath ;
2224 private readonly string _tentacleInstallPath ;
23-
25+
2426 public ConfigSettings ( Func < string , string > configSettingsGetter , Func < string , string > configPathGetter )
2527 {
2628 _octopusServer = configSettingsGetter ( OctopusServerConfigName ) ;
2729 _octopusApiKey = configSettingsGetter ( OctopusApiKeyConfigName ) ;
2830 _tentacleEnvironment = configSettingsGetter ( TentacleEnvironmentConfigName ) ;
2931 _tentacleRole = configSettingsGetter ( TentacleRoleConfigName ) ;
32+ _tentacleMachineNameSuffix = configSettingsGetter ( TentacleMachineNameSuffixConfigName ) ;
3033
3134 _tentacleDeploymentsPath = configPathGetter ( TentacleDeploymentsPathConfigName ) ;
3235 _tentacleInstallPath = configPathGetter ( TentacleInstallPathConfigName ) ;
@@ -36,6 +39,7 @@ public ConfigSettings(Func<string, string> configSettingsGetter, Func<string, st
3639 public string OctopusApiKey { get { return _octopusApiKey ; } }
3740 public string TentacleEnvironment { get { return _tentacleEnvironment ; } }
3841 public string TentacleRole { get { return _tentacleRole ; } }
42+ public string TentacleMachineNameSuffix { get { return _tentacleMachineNameSuffix ; } }
3943
4044 public string TentacleDeploymentsPath { get { return _tentacleDeploymentsPath ; } }
4145 public string TentacleInstallPath { get { return _tentacleInstallPath ; } }
0 commit comments