Sha256: 8f93270298c9c51bee48f4f196094408f83edbeb02a985f3f158eff2b468c491

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

# just a gem hook

Motion::Project::App.instance_eval do
  alias :setup_before_under_os :setup

  def setup(*args, &block)
    config.setup_blocks << proc do |app|
      Dir.glob(File.dirname(__FILE__) + '/**/*.rb').reverse.each do |file|
        app.files.insert(0, file) if file != __FILE__
      end
    end

    setup_before_under_os *args do |app|
      app.resources_dirs << File.dirname(__FILE__) + "/assets"
      app.resources_dirs << "app/styles/"  if File.exists?("app/styles")
      app.resources_dirs << "app/layouts/" if File.exists?("app/layouts")

      app.fonts << "fontawesome-webfont.ttf"

      instance_exec app, &block
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
under-os-1.0.0 lib/under-os.rb