class Novika::Resolver::Manifest::App

Overview

Represents an application manifest.

Included Modules

Defined in:

novika/resolver.cr

Constant Summary

FILENAME = ".nk.app"

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Novika::Resolver::Manifest::Present

directory directory, on_preamble(root : RunnableRoot, group : RunnableGroup, preamble : String) on_preamble, populate(root : RunnableRoot, container : RunnableContainer, origin : RunnableGroup) populate, to_s(io) to_s

Instance methods inherited from module Novika::Resolver::Runnable::Ancestor

ancestor? : Ancestor | Nil ancestor?

Instance methods inherited from module Novika::Resolver::Manifest

layout(container : RunnableContainer, group : RunnableGroup) layout, populate(root : RunnableRoot, container : RunnableContainer, origin : RunnableGroup) populate

Constructor methods inherited from module Novika::Resolver::Manifest

find(disk : Disk, path : Path, ancestor = nil) : Manifest find

Constructor Detail

def self.new(path : Path, ancestor : Novika::Resolver::Runnable::Ancestor | Nil) #

Creates a new application manifest.

path is a normalized path pointing to the manifest.


[View source]

Class Method Detail

def self.find?(disk : Disk, path : Path, ancestor = nil) #

Creates and returns an application manifest object if path contains an application manifest. Otherwise, returns nil.


[View source]

Instance Method Detail

def ancestor? : Runnable::Ancestor | Nil #
Description copied from module Novika::Resolver::Runnable::Ancestor

Returns the ancestor of this object, or nil if there is no ancestor.


[View source]
def layout(container : RunnableContainer, group : RunnableGroup) #
Description copied from module Novika::Resolver::Manifest

Populates container with runnables from group according to this manifest's default layout.

  • For application manifests, it's * ** entry.nk.
  • For library manifests and directories with no manifest, it's entry.nk * **.

[View source]