[Ovirt-devel] [PATCH client 08/11] Load commands

David Lutterkort lutter at redhat.com
Mon Jan 26 21:20:38 UTC 2009


---
 lib/ovirt.rb         |    2 ++
 lib/ovirt/command.rb |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 lib/ovirt/command.rb

diff --git a/lib/ovirt.rb b/lib/ovirt.rb
index 5ce64d5..07a2c3b 100644
--- a/lib/ovirt.rb
+++ b/lib/ovirt.rb
@@ -147,3 +147,5 @@ module OVirt
   end
 
 end
+
+require 'ovirt/command'
diff --git a/lib/ovirt/command.rb b/lib/ovirt/command.rb
new file mode 100644
index 0000000..bf362f0
--- /dev/null
+++ b/lib/ovirt/command.rb
@@ -0,0 +1,11 @@
+module OVirt::Command
+  module Base
+    def puts_error(msg)
+      $stderr.puts "error: " + msg
+      exit_status exit_failure
+    end
+  end
+end
+
+require 'ovirt/command/node'
+require 'ovirt/command/storage'
-- 
1.6.0.6




More information about the ovirt-devel mailing list