Files
Disco/Disco.Data/Configuration/Modules/BootstrapperConfiguration.cs
T
Gary Sharp 8533ec2fe0 Update: Configuration Framework +CallerMemberName
Simplified creation of configuration modules; Scope is obtained from
abstract, Property names become keys (via CallerMemberName); Simple
generic Get/Set methods are used; Helpers for Obsfucation and Json are
available.
2013-05-03 20:48:15 +10:00

43 lines
901 B
C#

using Disco.Data.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Disco.Data.Configuration.Modules
{
public class BootstrapperConfiguration : ConfigurationBase
{
public BootstrapperConfiguration(DiscoDataContext dbContext) : base(dbContext) { }
public override string Scope
{
get { return "Bootstrapper"; }
}
public string MacSshUsername
{
get
{
return this.Get("root");
}
set
{
this.Set(value);
}
}
public string MacSshPassword
{
get
{
return this.GetDeobsfucated(string.Empty);
}
set
{
this.SetObsfucated(value);
}
}
}
}