diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-09 00:06:11 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-09 00:06:11 -0500 |
commit | 3eb6867efa16f891512710eb2bb852483337eb5c (patch) | |
tree | 726560275ea0a76a681ff7fe260c7ed1ddf8f14c /hscript/script.cc | |
parent | 542e39743cd3fe85219bdb7fb00b385ac69f05c4 (diff) | |
download | horizon-3eb6867efa16f891512710eb2bb852483337eb5c.tar.gz horizon-3eb6867efa16f891512710eb2bb852483337eb5c.tar.bz2 horizon-3eb6867efa16f891512710eb2bb852483337eb5c.tar.xz horizon-3eb6867efa16f891512710eb2bb852483337eb5c.zip |
hscript: Implement stub Mount parser
Diffstat (limited to 'hscript/script.cc')
-rw-r--r-- | hscript/script.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hscript/script.cc b/hscript/script.cc index 2bc7831..ddd6cd3 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -143,8 +143,11 @@ struct Script::ScriptPrivate { this->rootpw = std::move(name); return true; } else if(key_name == "mount") { - /*! TODO: implement */ - return false; + std::unique_ptr<Keys::Mount> mount( + dynamic_cast<Keys::Mount *>(key_obj) + ); + this->mounts.push_back(std::move(mount)); + return true; } else { return false; } @@ -309,6 +312,9 @@ bool Script::validate() const { /* TODO: Runner.Validate.mount.Block. */ } } + + output_message("validator", "0", "installfile", + std::to_string(failures) + " failure(s).", ""); return (failures == 0); } |