codebase 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/codebase.rb +4 -1
- data/lib/codebase/commands/setup.rb +1 -1
- metadata +1 -1
data/lib/codebase.rb
CHANGED
@@ -7,8 +7,11 @@ HighLine.track_eof = false
|
|
7
7
|
|
8
8
|
require 'codebase/command'
|
9
9
|
|
10
|
+
trap("INT") { puts; exit }
|
11
|
+
|
10
12
|
module Codebase
|
11
|
-
|
13
|
+
|
14
|
+
|
12
15
|
class Error < RuntimeError; end
|
13
16
|
class NotConfiguredError < StandardError; end
|
14
17
|
class MustBeInRepositoryError < StandardError; end
|
@@ -21,13 +21,13 @@ module Codebase
|
|
21
21
|
puts
|
22
22
|
|
23
23
|
## Are you in a repository?
|
24
|
+
global = '--global'
|
24
25
|
if in_repository?
|
25
26
|
puts "You are currently in a repository directory."
|
26
27
|
if agree("Would you like to only apply configuration to actions carried out from within this directory?")
|
27
28
|
global = ''
|
28
29
|
puts "OK, we'll add your API details to this repository only."
|
29
30
|
else
|
30
|
-
global = '--global'
|
31
31
|
puts "OK, we'll configure your API details for your whole user account."
|
32
32
|
end
|
33
33
|
end
|