// Only log debug level when the -v flag is passed. func cmdRegistry(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version+" "+date, nil, func(modelvl int) { if modelvl >= 1 { log.SetLevel(log.DebugLevel) } }) m.Register(&megam.VerticeInstall{}) m.Register(&megam.Megamremove{}) m.Register(&megam.Megamreport{}) //m.Register(&config.VerticeConf{}) //m.Register(&lvm.Lvminstall{}) m.Register(&one.Oneinstall{}) m.Register(&one.Oneremove{}) m.Register(&onehost.Onehostinstall{}) m.Register(&onehost.Onehostremove{}) m.Register(&ceph.Cephremove{}) m.Register(&ceph.Cephdatastore{}) m.Register(&onehost.Createnetwork{}) m.Register(&onehost.Sshpass{}) m.Register(&ceph.Cephinstall{}) m.Register(&ceph.Cephgateway{}) m.Register(&mesos.MesosMasterInstall{}) m.Register(&mesos.MesosSlaveInstall{}) m.Register(&hostinfo.HostInfo{}) m.Register(&hostcheck.HostCheck{}) m.Register(&volume.CreateVolume{}) m.Register(&bridge.CreateBridge{}) m.Register(&attachonehost.AttachOneHost{}) m.Register(&datastore.CreateDatastoreLvm{}) m.Register(&network.CreateNetworkOpennebula{}) return m }
func (s *S) TestCommandsFromBaseManagerAreRegistered(c *check.C) { baseManager := cmd.BuildBaseManager("megam", version, header) manager := buildManager("megam") for name, instance := range baseManager.Commands { command, ok := manager.Commands[name] c.Assert(ok, check.Equals, true) c.Assert(command, check.FitsTypeOf, instance) } }
// Only log debug level when the -v flag is passed. func cmdRegistry(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version+" "+date, nil, func(modelvl int) { if modelvl >= 1 { log.SetLevel(log.DebugLevel) } }) m.Register(&run.Start{}) return m }
// Only log debug level when the -v flag is passed. func cmdRegistry(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version, nil, func(modelvl int) { if modelvl >= 1 { log.SetLevel(log.DebugLevel) } }) m.Register(&megam.Megaminstall{}) m.Register(&megam.Megamremove{}) m.Register(&megam.Megamreport{}) m.Register(&one.Oneinstall{}) m.Register(&one.Oneremove{}) m.Register(&onehost.Onehostinstall{}) m.Register(&onehost.Onehostremove{}) m.Register(&ceph.Cephinstall{}) m.Register(&ceph.Cephremove{}) m.Register(&onehost.Bridge{}) return m }
// Only log debug level when the -v flag is passed. func cmdRegistry(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version+" "+date, nil, func(modelvl int) { if modelvl >= 1 { log.SetLevel(log.DebugLevel) } }) m.Register(&megam.VerticeInstall{}) m.Register(&megam.Megamremove{}) m.Register(&megam.Megamreport{}) //m.Register(&config.VerticeConf{}) m.Register(&one.Oneinstall{}) m.Register(&one.Oneremove{}) m.Register(&onehost.Onehostinstall{}) m.Register(&onehost.Onehostremove{}) m.Register(&ceph.Cephremove{}) m.Register(&ceph.Cephdatastore{}) m.Register(&onehost.Createnetwork{}) m.Register(&onehost.Sshpass{}) m.Register(&ceph.Cephinstall{}) m.Register(&ceph.Cephgateway{}) m.Register(&mesos.MesosMasterInstall{}) m.Register(&mesos.MesosSlaveInstall{}) return m }
func buildManager(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version, header) m.Register(&GulpcStart{m, nil, false}) //start the gulpc server m.Register(&GulpcUpdate{}) //stop the gulpc server return m }
func buildManager(name string) *cmd.Manager { m := cmd.BuildBaseManager(name, version, header) m.Register(&IOTStart{}) return m }