Commit df2fee1a authored by Alexis Janon's avatar Alexis Janon
Browse files

Changed "command" module references to "transaction"

Forgot to refactor module references after the module name change
parent e967b292
......@@ -8,11 +8,11 @@ extern crate libc;
extern crate serde;
extern crate serde_json;
pub use self::command::Command;
pub use self::transaction::Command;
pub mod command;
pub mod configuration;
pub mod error;
pub mod parsing;
pub mod result;
pub mod show;
pub mod transaction;
use command::*;
use configuration::sysfscontroller::SysFsControllerList;
use error::*;
use serde_json;
use std::collections::HashMap;
use std::rc::Rc;
use transaction::*;
const MISSING_PROPERTIES: &str = "missing \"properties\" key for modify command";
const MISSING_CMD: &str = "missing \"cmd\" key for exec command";
......
use command::*;
use transaction::*;
pub struct CommandList {
subcommands: Vec<Box<Command>>,
......@@ -58,8 +58,8 @@ impl Command for CommandList {
mod tests {
use super::CommandList;
use command::*;
use error::*;
use transaction::*;
pub struct TestCommand<'a> {
value: i32,
......
use command::*;
use result::*;
use std::fs;
use std::io;
use std::path;
use transaction::*;
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default)]
pub struct CreateDir {
......
use command::*;
use configuration::sysfscontroller::SysFsControllerList;
use std::fs;
use std::path::PathBuf;
use std::rc::Rc;
use transaction::*;
#[derive(Clone, PartialEq, Eq)]
pub struct FindGetSetValue {
......
use command::*;
use std::fs;
use std::path::PathBuf;
use transaction::*;
#[derive(Clone, PartialEq, Eq)]
pub struct GetSetValue {
......
use command::*;
use std::fs;
use std::io;
use std::path;
use transaction::*;
// TODO: use an "inverse" wrapper struct for CreateDir with deref and newtype pattern?
......
use command::*;
use configuration::sysfscontroller::*;
use std::path;
use std::rc::Rc;
use transaction::*;
pub struct CreateSlice {
name: String,
......@@ -66,11 +66,11 @@ impl Command for CreateSlice {
mod tests {
use super::*;
use command::Command;
use configuration::sysfscontroller::SysFsControllerList;
use std::collections::HashMap;
use std::fs;
use std::path;
use transaction::Command;
const EXEC_NAME: &str = "test_create_slice_exec";
const ROLLBACK_NAME: &str = "test_create_slice_rollback";
......
use command::*;
use configuration::sysfscontroller::*;
use result::*;
use std::collections::HashMap;
......@@ -6,6 +5,7 @@ use std::os::unix::process::CommandExt;
use std::path::Path;
use std::process;
use std::rc::Rc;
use transaction::*;
pub struct Exec {
name: String,
......
use command::*;
use configuration::sysfscontroller::*;
use libc;
use result::*;
use std::collections::HashMap;
use std::io;
use std::rc::Rc;
use transaction::*;
pub struct ForkExec {
name: String,
......@@ -103,11 +103,11 @@ fn cvt<T: IsMinusOne>(t: T) -> io::Result<T> {
mod tests {
use super::*;
use command::Command;
use std::collections::HashMap;
use std::fs;
use std::path;
use std::rc::Rc;
use transaction::Command;
const EXEC_NAME: &str = "test_fork_exec";
......
use command::*;
use configuration::sysfscontroller::*;
use error::*;
use std::collections::HashMap;
use std::rc::Rc;
use transaction::*;
pub struct ModifySlice {
name: String,
......@@ -54,9 +54,9 @@ mod tests {
// TODO: *cleanup*: the tests are too complex
use super::*;
use command::Command;
use std::fs;
use std::path;
use transaction::Command;
const EXEC_NAME: &str = "test_modify_slice_exec";
const ROLLBACK_NAME: &str = "test_modify_slice_rollback";
......
use command::*;
use configuration::sysfscontroller::*;
use error::*;
use std::path;
use std::rc::Rc;
use transaction::*;
pub struct RemoveSlice {
name: String,
......@@ -42,10 +42,10 @@ impl Command for RemoveSlice {
mod tests {
use super::*;
use command::Command;
use std::collections::HashMap;
use std::fs;
use std::path;
use transaction::Command;
const EXEC_NAME: &str = "test_remove_slice_exec";
......
use command::*;
use configuration::sysfscontroller::*;
use std::collections::HashMap;
use std::rc::Rc;
use transaction::*;
pub struct Spawn {
name: String,
......@@ -74,11 +74,11 @@ impl Command for Spawn {
mod tests {
use super::*;
use command::Command;
use configuration::sysfscontroller::SysFsControllerList;
use std::collections::HashMap;
use std::fs;
use std::path;
use transaction::Command;
const EXEC_NAME: &str = "test_spawn_exec";
const ROLLBACK_NAME: &str = "test_spawn_rollback";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment