|
@ -6,6 +6,7 @@ use std::ops::Deref; |
|
|
use command_runner::CommandRunner;
|
|
|
use command_runner::CommandRunner;
|
|
|
use symbols::Symbol;
|
|
|
use symbols::Symbol;
|
|
|
use symbols::file::File as FileSymbol;
|
|
|
use symbols::file::File as FileSymbol;
|
|
|
|
|
|
use resources::Resource;
|
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
#[derive(Debug)]
|
|
|
pub enum NginxServerError<E: Error> {
|
|
|
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"]));
|
|
|
try!(self.command_runner.run_with_args("systemctl", &["reload-or-restart", "nginx"]));
|
|
|
Ok(())
|
|
|
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> {
|
|
|
impl<'a, C> fmt::Display for NginxServer<'a, C> where C: Deref<Target=str> {
|
|
|