module Ella

The main module for the Ella framework-framework.

Extra-special Message


I started making Ella because I found writing my own quick asset pipelines was much easier and faster and more bug-free than the “modern” and “correct” solutions. YAGNI should be a major cornerstorne of Ella.

Rake may be considered iff this file ever becomes overly-complicated or slow, but I want to make sure that an easy pipeline is available by default. The user can set up another pipeline if they need something more complicated.

– kmc

Constants

VERSION

Public Class Methods

abort(message) click to toggle source

This custom function exists because, ideally, the program will always abort with a logged message.

# File lib/ella.rb, line 28
def self.abort(message)
  Log.error(message)
  Kernel.abort
end
find_root() click to toggle source

Most of what Ella does requires a valid Ella project, however, the user could potentially be in a subdirectory.

# File lib/ella.rb, line 35
def self.find_root
  until Dir.entries(Dir.pwd).include?('main.rb')
    if Dir.pwd == '/'
      puts 'Error! This is not a valid Ella project directory!'
      exit!
    else
      Dir.chdir('..')
    end
  end
end