class SeedBed
  
  @@debug = false
  
  
  
  def plant( file )
    puts "Loading #{File.expand_path("db/seeds/#{file.to_s}.rb")}" if SeedBed.debug
    require File.expand_path("db/seeds/#{file.to_s}.rb")
  end
  
  def self.message( msg )
    puts ""
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
    puts msg
    puts ""
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  end
  
  def self.debug=(d)
    @@debug = d
  end
  
  def self.debug
    @@debug
  end
  
end

require 'seedbed/system'
class SeedBed
  
  @@debug = true
  attr_accessor :path
  
  def plant( file )
    @path = "db/seeds"
    yield self if block_given?
    expanded_path = File.expand_path("#{@path}/#{file.to_s}.rb")
    puts "Growing #{expanded_path}" if SeedBed.debug
    require expanded_path
    
  end
  
  def self.message( msg )
    puts ""
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
    puts msg
    puts ""
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  end
  
  def self.debug=(d)
    @@debug = d
  end
  
  def self.debug
    @@debug
  end
  
end

require 'seedbed/system'
Add ability to customize path via block and sets debug to true by default
Add ability to customize path via block and sets debug to true by default
