gitlab-mirror-pull 0.1.2 → 0.1.3

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: 031c46e7ac7e881e4cd9c3d9cf86bfcfa537411a
4
- data.tar.gz: c8da5f84891450d68143cedfcf351a820ad9058f
3
+ metadata.gz: 6f3ac2cc450aa76bb8a6b3b2d31c595d543e1266
4
+ data.tar.gz: d13ec7558eb0cafb25472d3e3249ac7101de5068
5
5
  SHA512:
6
- metadata.gz: e00babce25ffb430eb727c7f50625e3be0e8cd6a741b299dd14f838b4495a83ce24519fd927050ec4684acb3a0b43471e58a5f68e2fc3f3adcca48456a5b8e32
7
- data.tar.gz: 69045c0161fc1613f729b29feae589547d0540ab35d2c782ae318afa232f4751bef360bec1558e2d386c64340a7771c99ac7a8c9f3733c094e50704259902f97
6
+ metadata.gz: f9e709127e8633fa4bedfc47b1af3ecb6942bb99d8ab5559b295a92d910e42046e0d0e885169dc541970de03d852a43393ebb1a83af374004f813e0d4f76b742
7
+ data.tar.gz: 8e79a028c310e57b75bef65a52c56e01626a8edb9269ad2e04a82ab27fafcc065aba41d0376b32894e2d3fd29801976a8a21178083f7fa4144cce5eb8b45483b
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/gitlab-mirror-pull.rb'
@@ -9,19 +9,23 @@ log.level = Logger::ERROR
9
9
 
10
10
  # Parse commandline arguments
11
11
  options = {
12
- :config => File.join(File.dirname(__FILE__), "../config.yml"),
12
+ :config => File.join(File.dirname(__FILE__), "../config.example.yml"),
13
13
  :log_level => Logger::ERROR
14
14
  }
15
15
  OptionParser.new do |opts|
16
16
  opts.banner = "Usage: gitlab-mirror-pull.rb [options]"
17
-
17
+ opts.set_summary_indent(' ')
18
+ opts.set_summary_width(50)
19
+ opts.define_head "Fetch gitlab repositories when remote set.
20
+ Default config #{File.join(File.dirname(__FILE__), "../config.example.yml")}\n\n"
21
+
18
22
  # Config argument
19
23
  opts.on("-c", "--config [config.yml]", "Specify config yaml") do |yml|
20
24
  options[:config] = yml
21
25
  end
22
26
 
23
27
  # LogLevel argument
24
- opts.on("-l", "--log-level INFO|WARN|ERROR|DEBUG", "Define log level") do |level|
28
+ opts.on("-l", "--log-level [INFO|WARN|ERROR|DEBUG]", "Define log level") do |level|
25
29
  case level
26
30
  when "INFO"
27
31
  log.level = Logger::INFO
@@ -34,6 +38,11 @@ OptionParser.new do |opts|
34
38
  end
35
39
  end
36
40
 
41
+ opts.on_tail("-h", "--help", "Show this message") do
42
+ puts opts
43
+ exit
44
+ end
45
+
37
46
  end.parse!
38
47
 
39
48
  # Load config.yml
metadata CHANGED
@@ -1,22 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-mirror-pull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ochorocho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Checks for repositories with a set remote and run git fetch on these
14
14
  ...
15
15
  email: rothjochen@gmail.com
16
- executables: []
16
+ executables:
17
+ - gitlab-mirror-pull
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
21
+ - bin/gitlab-mirror-pull
20
22
  - lib/gitlab-mirror-pull.rb
21
23
  homepage: https://github.com/ochorocho/gitlab-mirror-pull
22
24
  licenses: