Exemple #1
0
func (f *File) setEnsure(args haiconf.CommandArgs) error {
	e, err := haiconf.CheckEnsure(args)
	if err != nil {
		return err
	}

	f.Ensure = e

	return nil
}
Exemple #2
0
func (g *Group) setEnsure(args haiconf.CommandArgs) error {
	e, err := haiconf.CheckEnsure(args)
	if err != nil {
		return err
	}

	g.Ensure = e

	return nil
}
Exemple #3
0
func (c *Cron) setEnsure(args haiconf.CommandArgs) error {
	e, err := haiconf.CheckEnsure(args)
	if err != nil {
		return err
	}

	c.Ensure = e

	return nil
}
Exemple #4
0
func (d *Directory) setEnsure(args haiconf.CommandArgs) error {
	e, err := haiconf.CheckEnsure(args)
	if err != nil {
		return err
	}

	d.Ensure = e

	return nil
}