Add some prerequisites
This commit is contained in:
parent
124b639e50
commit
f3b70607f1
6 changed files with 81 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use std::ops::Deref;
|
|||
use command_runner::CommandRunner;
|
||||
use symbols::Symbol;
|
||||
use symbols::file::File as FileSymbol;
|
||||
use resources::Resource;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum NginxServerError<E: Error> {
|
||||
|
|
@ -99,6 +100,10 @@ impl<'a, C> Symbol for NginxServer<'a, C> where C: Deref<Target=str> {
|
|||
try!(self.command_runner.run_with_args("systemctl", &["reload-or-restart", "nginx"]));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn get_prerequisites(&self) -> Vec<Box<Resource>> {
|
||||
self.file.get_prerequisites()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, C> fmt::Display for NginxServer<'a, C> where C: Deref<Target=str> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue