module CloudModel
  class Config 
    attr_writer :data_directory, :backup_directory, :bundle_command
    attr_writer :skip_sync_images, :gentoo_mirrors
    attr_accessor :admin_email, :gentoo_mirrors
    
    def initialize(&block) 
      configure(&block) if block_given?
    end

    # Configure your CloudModel Rails Application with the given parameters in 
    # the block. For possible options see above.
    def configure(&block)
      yield(self)
    end
    
    def data_directory
      @data_directory || "#{Rails.root}/data"
    end
    
    def backup_directory
      @backup_directory || "#{data_directory}/backups"
    end
    
    # If true do not sync images on deploy
    def skip_sync_images
      @skip_sync_images || false
    end
    
    def bundle_command
      @bundle_command || 'PATH=/bin:/sbin:/usr/bin:/usr/local/bin /usr/bin/bundle'
    end
  end
end
module CloudModel
  class Config 
    attr_writer :data_directory, :backup_directory, :bundle_command
    attr_writer :skip_sync_images, :gentoo_mirrors
    attr_accessor :admin_email, :gentoo_mirrors
    
    def initialize(&block) 
      configure(&block) if block_given?
    end

    # Configure your CloudModel Rails Application with the given parameters in 
    # the block. For possible options see above.
    def configure(&block)
      yield(self)
    end
    
    def data_directory
      @data_directory || "#{Rails.root}/data"
    end
    
    def backup_directory
      @backup_directory || "#{data_directory}/backups"
    end
    
    # If true do not sync images on deploy
    def skip_sync_images
      @skip_sync_images || false
    end
    
    def bundle_command
      @bundle_command || 'PATH=/bin:/sbin:/usr/bin:/usr/local/bin bundle'
    end
  end
end
Fix call to bundle for newly tailored guest images (which have bundle command at /usr/local instead of /usr)
Fix call to bundle for newly tailored guest images (which have bundle command at /usr/local instead of /usr)
