$:.unshift File.dirname(__FILE__) require 'physical_system' require 'cotta_dir' require 'cotta_file' require 'pathname' module BuildMaster class Cotta def initialize(system=PhysicalSystem.new) @system = system end def shell(command_line) puts "$> #{command_line}" @system.shell(command_line) end def dir(path) return CottaDir.new(@system, Pathname.new(path)) end def file(path) return CottaFile.new(@system, Pathname.new(path)) end def environment!(variable) @system.environment!(variable) end def environment(variable, default = '') @system.environment(variable, default) end end end