Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fa340595
Commit
fa340595
authored
Mar 22, 2014
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default message for SatelliteNotExistError
parent
ae1a3148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/gitlab/satellite/satellite.rb
lib/gitlab/satellite/satellite.rb
+8
-8
No files found.
lib/gitlab/satellite/satellite.rb
View file @
fa340595
module
Gitlab
class
SatelliteNotExistError
<
StandardError
;
end
class
SatelliteNotExistError
<
StandardError
def
initialize
(
msg
=
"Satellite doesn't exist"
)
super
end
end
module
Satellite
class
Satellite
...
...
@@ -17,12 +21,8 @@ module Gitlab
Gitlab
::
Satellite
::
Logger
.
error
(
message
)
end
def
raise_no_satellite
raise
SatelliteNotExistError
.
new
(
"Satellite doesn't exist"
)
end
def
clear_and_update!
raise
_no_satellite
unless
exists?
raise
SatelliteNotExistError
unless
exists?
File
.
exists?
path
@repo
=
nil
...
...
@@ -55,7 +55,7 @@ module Gitlab
# * Changes the current directory to the satellite's working dir
# * Yields
def
lock
raise
_no_satellite
unless
exists?
raise
SatelliteNotExistError
unless
exists?
File
.
open
(
lock_file
,
"w+"
)
do
|
f
|
begin
...
...
@@ -77,7 +77,7 @@ module Gitlab
end
def
repo
raise
_no_satellite
unless
exists?
raise
SatelliteNotExistError
unless
exists?
@repo
||=
Grit
::
Repo
.
new
(
path
)
end
...
...
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