Sha256: 1f5e6e7fb462bcbcd4f506cb000cca50218ea7eb28e917b72bfeac168159ad00

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

schema ServiceState
uninstalled isa ServiceState { }
installed isa ServiceState { }
running isa ServiceState { }

schema VHost {
	serverName = ""
	port = 80
	documentRoot = ""
	serverAdmin = ""
}

schema Apache {
	state = uninstalled
	version = "latest"
	module_php = false
	module_php_mysql = false

	default isa VHost {
		serverName = "*"
		port = 80
		document = "/var/www"
		serverAdmin = "webmaster@localhost"
	}

	sub install {
		condition {
			this.state = uninstalled
		}
		effect {
			this.state = installed
		}
	}

	sub uninstall {
		condition {
			this.state = installed
		}
		effect {
			this.state = uninstalled
		}
	}

	sub start {
		condition {
			this.state = installed
		}
		effect {
			this.state = running
		}
	}

	sub stop {
		condition {
			this.state = running
		}
		effect {
			this.state = uninstalled
		}
	}

	sub install_module_php {
		condition {
			this.installed = true
			this.running = false
		}
		effect {
			this.module_php = true
		}
	}

	sub uninstall_module_php {
		condition {
			this.running = false
		}
		effect {
			this.php_module = false
		}
	}

	sub install_module_php_mysql {
		condition {
			this.module_php = true
			this.installed = true
			this.running = false
		}
		effect {
			this.module_php_mysql = true
		}
	}

	sub uninstall_module_php_mysql {
		condition {
			this.running = false
		}
		effect {
			this.module_php_mysql = false
		}
	}
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nuri-0.5.5 modules/apache/apache.sfp.future
nuri-0.5.4 modules/apache/apache.sfp.future
nuri-0.5.3 modules/apache/apache.sfp.future
nuri-0.5.2 modules/apache/apache.sfp.future
nuri-0.5.1 modules/apache/apache.sfp.future