gleis 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 2481657ba18d0dc9d1c9c159ffd3057158ae6febb5aeb234ff1d17d9c26607d3
4
- data.tar.gz: 5b2a4ad6053130dd3c4c8fb1381835c6d430df696a89cc556e2ad8466968fe08
3
+ metadata.gz: e8fc09f440241c3140e97287f6a470d806f5dbe185533156f7af783dc3336ea0
4
+ data.tar.gz: 06d8a1ae386b38a1e2e6d0bfaaf8cc01e639f7e0c85460b82c81d5f9302f6fff
5
5
  SHA512:
6
- metadata.gz: abb5525578089f01e36cfcb20a63f546e5f0fcefb7dfd605aab827474119d393fc9d5fd6ed77a16f3642217284582fb78c55f6f19c4fbc13dacd78e950ad0aee
7
- data.tar.gz: 1f7354bd6d77d462d3384e41dbc5419ee19f682c79571bbc9a80be8434073caa4413418043bd8937dd45b92bbcf6ed218bfb97ce426ee6c3d9ae3924cd600380
6
+ metadata.gz: 19fdc3714967a09eda63cf01d667796f7a45bbd21280fa77d8861d5fd666eed3b26d5c2c8fe1fdcbdb8640679c18b55606d0f56daa964c8a85e6a8f8f0a9040f
7
+ data.tar.gz: 94a5ac9e61670d43cf5a1f89e882aa4bea79e10ba27acfc9b0fbaeb11abbc06c53e65c889ca45d062baef9540bf56863d23f6656808a6be245edeef355d88faa
@@ -5,6 +5,12 @@ All notable changes to the Gleis CLI will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.3.1 - 2018-12-12
9
+
10
+ ### Added
11
+
12
+ - Quiet mode to app git command displaying only the git repo URL for automation purpose
13
+
8
14
  ## 0.3.0 - 2018-12-10
9
15
 
10
16
  ### Added
data/exe/gleis CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  require 'gleis/main'
4
4
 
5
- puts "\n### Gleis CLI Copyright (c) 2018 towards GmbH - v#{Gleis::VERSION} - https://gleis.cloud ###\n\n"
5
+ puts "\n### Gleis CLI Copyright (c) 2018 towards GmbH - v#{Gleis::VERSION} - https://gleis.cloud ###\n\n" \
6
+ unless ARGF.argv.include?('-q')
6
7
 
7
8
  trap 'SIGINT' do
8
9
  puts "\n\nExiting..."
@@ -91,12 +91,16 @@ module Gleis
91
91
  end
92
92
  end
93
93
 
94
- def self.git(app_name)
94
+ def self.git(app_name, quiet)
95
95
  token = Token.check
96
96
  action = 'git/' + app_name
97
97
  body = API.request('get', action, token)
98
98
  if body['success'] == 1
99
- puts "The URL to the git repo of the #{app_name} app is: #{body['data']}"
99
+ if quiet
100
+ puts body['data']
101
+ else
102
+ puts "The URL to the git repo of the #{app_name} app is: #{body['data']}"
103
+ end
100
104
  else
101
105
  puts 'Failed to fetch git URL for app.'
102
106
  end
@@ -30,8 +30,9 @@ module Gleis
30
30
  end
31
31
 
32
32
  desc 'git', 'Show URL of git repository'
33
+ option :quiet, aliases: :q, type: :boolean, default: false
33
34
  def git
34
- Application.git(options[:app])
35
+ Application.git(options[:app], options[:quiet])
35
36
  end
36
37
 
37
38
  desc 'logs', 'View last log entries'
@@ -1,3 +1,3 @@
1
1
  module Gleis
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gleis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Bigler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler