Module: Staticky
- Extended by:
- Dry::Configurable
- Defined in:
- lib/staticky.rb,
lib/staticky.rb,
lib/staticky/cli.rb,
lib/staticky/deps.rb,
lib/staticky/error.rb,
lib/staticky/router.rb,
lib/staticky/server.rb,
lib/staticky/builder.rb,
lib/staticky/version.rb,
lib/staticky/resource.rb,
lib/staticky/generator.rb,
lib/staticky/pluggable.rb,
lib/staticky/filesystem.rb,
lib/staticky/application.rb,
lib/staticky/environment.rb,
lib/staticky/cli/commands.rb,
lib/staticky/routing/plugins.rb,
lib/staticky/resources/plugins.rb,
lib/staticky/cli/commands/build.rb,
lib/staticky/phlex/view_helpers.rb,
lib/staticky/cli/commands/version.rb,
lib/staticky/cli/commands/generate.rb,
lib/staticky/resources/plugins/phlex.rb,
lib/staticky/routing/plugins/prelude.rb,
lib/staticky/resources/plugins/prelude.rb
Defined Under Namespace
Modules: CLI, Phlex, Pluggable, Resources, Routing
Classes: Application, Builder, Error, Filesystem, Generator, Resource, Router, Server
Constant Summary
collapse
- GEM_ROOT =
Pathname.new(__dir__).join("..").expand_path
- Deps =
Application.injector
- VERSION =
"0.2.0"
- Environment =
Data.define(:name) do
def development? = name == :development
def test? = name == :test
end
Class Method Summary
collapse
Class Method Details
.application ⇒ Object
56
|
# File 'lib/staticky.rb', line 56
def application = Application
|
.build_path ⇒ Object
50
|
# File 'lib/staticky.rb', line 50
def build_path = config.build_path
|
.builder ⇒ Object
54
|
# File 'lib/staticky.rb', line 54
def builder = application[:builder]
|
.env ⇒ Object
58
59
60
|
# File 'lib/staticky.rb', line 58
def env
Environment.new config.env.to_sym
end
|
.generator ⇒ Object
55
|
# File 'lib/staticky.rb', line 55
def generator = application[:generator]
|
.logger ⇒ Object
49
|
# File 'lib/staticky.rb', line 49
def logger = config.logger
|
.monitor ⇒ Object
47
|
# File 'lib/staticky.rb', line 47
def monitor(...) = application.monitor(...)
|
.resources ⇒ Object
52
|
# File 'lib/staticky.rb', line 52
def resources = router.resources
|
.root_path ⇒ Object
51
|
# File 'lib/staticky.rb', line 51
def root_path = config.root_path
|
.router ⇒ Object
53
|
# File 'lib/staticky.rb', line 53
def router = application[:router]
|
.server_logger ⇒ Object
48
|
# File 'lib/staticky.rb', line 48
def server_logger = config.server_logger
|