summaryrefslogtreecommitdiff
path: root/hscript/meta.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 22:08:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 22:08:14 -0500
commita6c6d0a42920fb9332f810e949fdf5fe20262f22 (patch)
treefd0bf555c53b74fb7ca141738a1428a868050b79 /hscript/meta.hh
parenta621e6b86adfe8278d2e9c110eb8ef54e58c6abe (diff)
downloadhorizon-a6c6d0a42920fb9332f810e949fdf5fe20262f22.tar.gz
horizon-a6c6d0a42920fb9332f810e949fdf5fe20262f22.tar.bz2
horizon-a6c6d0a42920fb9332f810e949fdf5fe20262f22.tar.xz
horizon-a6c6d0a42920fb9332f810e949fdf5fe20262f22.zip
hscript: Use StringKey for Hostname (+ others), implement RootPassphrase
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r--hscript/meta.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh
index 6515259..1db411d 100644
--- a/hscript/meta.hh
+++ b/hscript/meta.hh
@@ -20,15 +20,13 @@
namespace Horizon {
namespace Keys {
-class Hostname : public Key {
+class Hostname : public StringKey {
private:
- const std::string _name;
- Hostname(int _line, const std::string my_name) : Key(_line),
- _name(my_name) {}
+ Hostname(int _line, const std::string my_name) :
+ StringKey(_line, my_name) {}
public:
static Key *parseFromData(const std::string data, int lineno, int *errors,
int *warnings);
- const std::string name() const { return this->_name; }
bool validate() const override;
bool execute() const override;
};