Sha256: e24502a993cc264a9ac52b8cdf24b59f8240ff09d389d31b2e9b571b171043d3

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

Stored size: 603 Bytes

Contents

include "../service/service.sfp"

schema Mysql extends Service {
	package_name = "mysql-server"
	service_name = "mysql"
	port : Int
	root_password : String
	public : Bool

	sub set_root_password (passwd isref String) {
		condition {
			this.running = true
		}
		effect {
			this.root_password = passwd
		}
	}

	sub set_public (pub isref Boolean) {
		condition {
			this.installed = true
			this.running = false
		}
		effect {
			this.public = pub
		}
	}

	sub set_port (target isref Integer) {
		condition {
			this.installed = true
			this.running = false
		}
		effect {
			this.port = target
		}
	}
}

Version data entries

5 entries across 5 versions & 1 rubygems

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