Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
9f4ec663
Commit
9f4ec663
authored
Jul 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use fat arrows where needed - fix indentation
parent
a4ab5fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
debomatic-webui/lib/debomatic.coffee
debomatic-webui/lib/debomatic.coffee
+10
-10
No files found.
debomatic-webui/lib/debomatic.coffee
View file @
9f4ec663
...
...
@@ -6,14 +6,14 @@ e = config.events.broadcast
_get_distributions
=
(
callback
)
->
utils
.
get_files_list
config
.
debomatic
.
path
,
true
,
(
directories
)
->
distributions
=
[]
for
dir
in
directories
data
=
{}
data
.
distribution
=
{}
data
.
distribution
.
name
=
dir
pool_path
=
utils
.
get_distribution_pool_path
(
data
)
distributions
.
push
dir
if
fs
.
existsSync
(
pool_path
)
callback
(
distributions
)
distributions
=
[]
for
dir
in
directories
data
=
{}
data
.
distribution
=
{}
data
.
distribution
.
name
=
dir
pool_path
=
utils
.
get_distribution_pool_path
(
data
)
distributions
.
push
dir
if
fs
.
existsSync
(
pool_path
)
callback
(
distributions
)
class
Debomatic
...
...
@@ -66,13 +66,13 @@ class Debomatic
@
status
[
key
]
=
data
@
sockets
.
emit
e
.
status_update
,
data
watcher
.
on
"error"
,
(
msg
)
-
>
watcher
.
on
"error"
,
(
msg
)
=
>
@
sockets
.
emit
config
.
events
.
error
,
msg
start
:
->
# if json file does not still exist wait for its creation
if
not
fs
.
existsSync
(
config
.
debomatic
.
jsonfile
)
fs
.
watchFile
config
.
debomatic
.
jsonfile
,
(
curr
,
prev
)
-
>
fs
.
watchFile
config
.
debomatic
.
jsonfile
,
(
curr
,
prev
)
=
>
if
curr
.
ino
isnt
0
fs
.
unwatchFile
(
config
.
debomatic
.
jsonfile
)
@
watch_status
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment