<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/noober/macros.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,43 +1,6 @@
 $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
-module Noober
-  def must_be_osx_machine
-    # sw_vers command lists the OS version on Mac OS
-    vers = `sw_vers`
-    
-    # If the command errors, it's probably not OS X
-    if $? != 0
-      $stderr.puts &quot;Command sw_vers not found. This must be run on OS X.&quot;
-      exit 1
-    end
-    
-    # Check it is atleast &quot;Mac OS X&quot;
-    if not vers.scan(/ProductName:.*?Mac OS X/)
-      $stderr.puts &quot;This command requires Mac OS X&quot;
-      exit 1
-    end
-    
-    # Check version is atleast 10.5.0
-    if vers.scan(/ProductVersion:.*?(\d+?)\.(\d+?)\.(\d+?)$/)
-      c_major, c_minor, c_patch = $1.to_i, $2.to_i, $3.to_i
-      
-      if not c_major &gt;= 10 &amp;&amp; c_minor &gt;= 5 &amp;&amp; c_patch &gt;= 0
-        #TODO Move the required OS version to a config
-        $stderr.puts &quot;This requires atleast Mac OS X v10.5.0&quot;
-        exit 1
-      end
-    end
-  end
-  
-  def must_be_root_user
-    if `whoami`.chomp != 'root'
-      $stderr.puts &quot;This command must be run with `sudo #{$0}`&quot;
-      exit 1
-    end
-  end
-end
-
 require &quot;fileutils&quot;
 require &quot;open-uri&quot;
 
@@ -47,6 +10,9 @@ require &quot;sparkleology&quot;
 require &quot;randexp&quot;
 require &quot;hpricot&quot;
 
+module Noober; end;
+
+require &quot;noober/macros&quot;
 require &quot;noober/exceptions&quot;
 require &quot;noober/recipe&quot;
 require &quot;noober/command&quot;</diff>
      <filename>lib/noober.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7186ac5c20602d8d6f6ca1cdff26cc1174bd25d1</id>
    </parent>
  </parents>
  <author>
    <name>Bodaniel Jeanes</name>
    <email>me@bjeanes.com</email>
  </author>
  <url>http://github.com/bjeanes/noober/commit/276ad2aa7026effe3efeb80e4b5a2f0f2d947d04</url>
  <id>276ad2aa7026effe3efeb80e4b5a2f0f2d947d04</id>
  <committed-date>2008-09-22T02:48:57-07:00</committed-date>
  <authored-date>2008-09-22T01:34:45-07:00</authored-date>
  <message>Moved checker macros into own file</message>
  <tree>924531788a5e94620ad1250e0baed504e6e298ec</tree>
  <committer>
    <name>Bodaniel Jeanes</name>
    <email>me@bjeanes.com</email>
  </committer>
</commit>
