struct DPPM::Prefix::App
- DPPM::Prefix::App
- Struct
- Value
- Object
Included Modules
Defined in:
prefix/app.crInstance Method Summary
-
#add(vars : Hash(String, String) = Hash(String, String).new, shared : Bool = true, add_service : Bool = true, socket : Bool = false, database : String? = nil, url : String? = nil, web_server : String? = nil, confirmation : Bool = true, &block)
Adds a new application to the system.
-
#contained? : Bool?
The application is self-contained.
-
#database_create(database_app : App) : Database::MySQL
Creates a new database for this application.
-
#del_config(key : String)
Deletes a config key.
-
#delete(confirmation : Bool = true, preserve_database : Bool = false, keep_user_group : Bool = false, &) : App?
Deletes an existing application from the system.
-
#each_config_key(&block : String -> )
Yields each configuration key of the application and its libraries (if any).
-
#each_log_stream(&block : String -> )
Yields each log stream.
- #exec
- #file_info
-
#get_config(key : String, &)
Gets the config key.
-
#get_logs(stream_name : String, follow : Bool = true, lines : Int32? = nil, &block : String -> )
Get application logs.
- #log_file_error
- #log_file_output
- #logs_path
-
#new_website(app : App) : WebSite::Caddy
Adds a new site.
- #owner
-
#password
Password content, typically used for the database user.
-
#password_file
Password path, typically used for the database user.
-
#path_env_var : String
Returns a
PATH
with the directories locations to find the application and libaries binaries. -
#pkg : Pkg
Base
Pkg
package of this application. -
#pkg? : Pkg | Nil?
Base
Pkg
package of this application. -
#real_app_path : Path
Real package path of the application.
-
#service
Returns the system service of the application.
-
#service? : Service::OpenRC | Service::Systemd | Nil?
Returns the system service, if available.
-
#service_create(service_dependency : String? = nil) : Service::OpenRC | Service::Systemd
Creates a new system service
-
#service_default_file
Default service file location.
-
#service_file
Service file location.
-
#service_path
Service directory.
-
#set_config(key : String, value)
Sets a config key.
-
#set_permissions
Set directory access permissions
-
#shared? : Bool
Use a shared application package.
- #upgrade(tag : String? = nil, version : String? = nil, vars : Hash(String, String) = Hash(String, String).new, shared : Bool = true, confirmation : Bool = true, &block)
- #uri? : URI?
- #webserver? : Prefix::App?
- #webserver_sites_path
- #website=(website : WebSite::Caddy)
- #website? : WebSite::Caddy | Nil?
-
#write_configs : Nil
Write all configurations
Instance methods inherited from module DPPM::Prefix::ProgramData
all_bin_paths
all_bin_paths,
app_bin_path
app_bin_path,
app_path
app_path,
available!
available!,
data_path
data_path,
exists?
exists?,
install_deps(deps : Set(Pkg), shared : Bool = true, &)
install_deps,
libs
libs,
site_path
site_path
Instance methods inherited from module DPPM::Prefix::Base
conf_path
conf_path,
config! : ::Config::Types
config!,
config? : ::Config::Types | Nil?
config?,
config_file! : Path
config_file!,
config_file? : Path | Nil?
config_file?,
database? : Database::MySQL | Nil?
database?,
deps_with_expr
deps_with_expr,
each_config_key(&block : String -> )
each_config_key,
get_config(key : String)get_config(key : String, &) get_config, get_config?(key : String) get_config?, libs_path libs_path, name : String name, path : Path path, pkg_file pkg_file, port_checker(host : String) : PortChecker port_checker, prefix : Prefix prefix, resolve_deps(dependencies : Hash(String, Array(SemanticVersion)) = Hash(String, Array(SemanticVersion)).new) : Hash(String, Array(SemanticVersion)) resolve_deps
Instance Method Detail
Creates a new database for this application.
Deletes an existing application from the system.
ameba:disable Metrics/CyclomaticComplexity
Yields each configuration key of the application and its libraries (if any).
Get application logs.
Adds a new site. Assumes the app is a Web Server.
Returns a PATH
with the directories locations to find the application and libaries binaries.
Returns the system service, if available.
Creates a new system service