Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F77433
nola.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
675 B
Subscribers
None
nola.ex
View Options
defmodule
Nola
do
@default_brand
[
name
:
"Nola"
,
source_url
:
"https://phab.random.sh/source/Nola/"
,
owner
:
"Ashamed owner"
,
owner_email
:
"contact@my.nola.bot"
]
def
env
(),
do
:
Application
.
get_env
(
:nola
)
def
env
(
key
,
default
\\
nil
),
do
:
Application
.
get_env
(
:nola
,
key
,
default
)
def
brand
(),
do
:
env
(
:brand
,
@default_brand
)
def
brand
(
key
),
do
:
Keyword
.
get
(
brand
(),
key
)
def
name
(),
do
:
brand
(
:name
)
def
source_url
(),
do
:
brand
(
:source_url
)
def
data_path
(
suffix
)
do
Path
.
join
(
data_path
(),
suffix
)
end
def
data_path
do
Application
.
get_env
(
:nola
,
:data_path
)
end
def
version
do
Application
.
spec
(
:nola
)[
:vsn
]
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Mon, Jul 7, 3:56 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
49913
Default Alt Text
nola.ex (675 B)
Attached To
rNOLA Nola
Event Timeline
Log In to Comment