gitlab-development-kit 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 048d6a5c0cf12139423fd00a52692f80c4a926d8
4
- data.tar.gz: 5ae51adc3c875e66be21f09595a27c9331b0a090
3
+ metadata.gz: 7c08724cade5596b519cec789c57fd78a3768eb6
4
+ data.tar.gz: 789b3739455ef0bb09656a197a26fd47699d2432
5
5
  SHA512:
6
- metadata.gz: d467bd2f6cd63ab87ee6e78ca4b63dc163c0b7d69b6fc4522ec46bdea20b28336f79bb207d36217c8d19f6710526ad20e3030eaf57fdeea41818696024d6c567
7
- data.tar.gz: 589794185c7116e427349388a5bb2da0805c06e0b6d2c61215f15cc7d4ee4ac7aab58c177a66f177292d26210c363604080e2d9e2b0fc8400015f0d4564a72a5
6
+ metadata.gz: 3455fc72970248142aa5f22dd79ad70fb3a1ef42a5d355824e51a3b42f5e1ef930f3f1cb572859f2279091a79e711d9782992f310ec768cd316983a4d3f1eb8c
7
+ data.tar.gz: 96d32477fa3318284c1c861968c8da11d4c4d542789ebac88cd323d1c7ed9a8339d825c8d1fcb676b36694bf0b53544e081abd4ebf33e6e9c4ddd53703e3287f
data/bin/gdk CHANGED
@@ -14,6 +14,7 @@ module GDK
14
14
  DOTFILE = File.expand_path('~/.gdk.yml')
15
15
  TRUSTED_KEY = 'trusted_directories'
16
16
  ROOT_CHECK_FILE = '.gdk-install-root'
17
+ DEFAULT_INIT_DIRECTORY = File.join(Dir.pwd, 'gitlab-development-kit')
17
18
 
18
19
  def self.launcher_main
19
20
  case ARGV.first
@@ -25,7 +26,7 @@ module GDK
25
26
  puts "Usage: gdk init [DIR]"
26
27
  return false
27
28
  end
28
- directory = ARGV.count == 2 ? ARGV[1] : 'gitlab-development-kit'
29
+ directory = ARGV.count == 2 ? ARGV[1] : DEFAULT_INIT_DIRECTORY
29
30
  cmd = %W(git clone https://gitlab.com/gitlab-org/gitlab-development-kit.git #{directory})
30
31
  system(*cmd) && trust!(directory) && remember!(directory)
31
32
  when 'trust'
@@ -37,7 +38,15 @@ module GDK
37
38
  else
38
39
  $gdk_root = find_root(Dir.pwd)
39
40
  if $gdk_root.nil?
40
- puts "Could not find GDK_ROOT in the current directory or any of its parents."
41
+ puts <<-EOS.gsub(/^\s+\|/, '')
42
+ |
43
+ |The current working directory is not inside a gitlab-development-kit
44
+ |installation. Use 'cd' to go to your gitlab-development-kit or create
45
+ |a new one with 'gdk init'.
46
+ |
47
+ |gdk init [DIRECTORY] # Default: #{DEFAULT_INIT_DIRECTORY}
48
+ |
49
+ EOS
41
50
  return false
42
51
  end
43
52
  puts "(in #{$gdk_root})"
@@ -1,3 +1,3 @@
1
1
  module GDK
2
- GEM_VERSION = '0.2.3'
2
+ GEM_VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-development-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: CLI for GitLab Development Kit.
14
14
  email: