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 +4 -4
- data/CHANGELOG.md +6 -0
- data/exe/gleis +2 -1
- data/lib/gleis/application.rb +6 -2
- data/lib/gleis/cli/app.rb +2 -1
- data/lib/gleis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fc09f440241c3140e97287f6a470d806f5dbe185533156f7af783dc3336ea0
|
4
|
+
data.tar.gz: 06d8a1ae386b38a1e2e6d0bfaaf8cc01e639f7e0c85460b82c81d5f9302f6fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19fdc3714967a09eda63cf01d667796f7a45bbd21280fa77d8861d5fd666eed3b26d5c2c8fe1fdcbdb8640679c18b55606d0f56daa964c8a85e6a8f8f0a9040f
|
7
|
+
data.tar.gz: 94a5ac9e61670d43cf5a1f89e882aa4bea79e10ba27acfc9b0fbaeb11abbc06c53e65c889ca45d062baef9540bf56863d23f6656808a6be245edeef355d88faa
|
data/CHANGELOG.md
CHANGED
@@ -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..."
|
data/lib/gleis/application.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/gleis/cli/app.rb
CHANGED
@@ -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'
|
data/lib/gleis/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|