shaman_cli 2.5.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +4 -0
- data/.ruby-version +1 -0
- data/Dockerfile +11 -0
- data/README.md +9 -8
- data/docker-compose.yml +16 -0
- data/exe/shaman +2 -1
- data/lib/shaman/deploy.rb +2 -1
- data/lib/shaman/init.rb +1 -1
- data/lib/shaman/version.rb +1 -1
- data/shaman.gemspec +2 -2
- data/tmp/.keep +0 -0
- metadata +19 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb59eb5fcd1ac6c88047281c21c53b92b6e74b9a4a1382dc1765b8eb71018dd0
|
4
|
+
data.tar.gz: 8b5a38e2b2da3bc496136e3eaac7757e7c9635fac10f7fe4d80dc29a6f169de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd5a4e90d17617aa8ab5194ce969cc4dbcbfda47d26f6b07c18432afd23daf68ccfc534c37469b1799de3d21ba216702a3562b5c0465625b5ea4c475b3999fa
|
7
|
+
data.tar.gz: 8c2656cbfcaebe3499e78ee077b23f79f0feeceb4249f8422d3f9c2ec71afa9f2a2aa80bc70332a6ed761ae6960f92281e4bef9af37ad592b49765e78a20fcef
|
data/.dockerignore
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.0
|
data/Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
FROM ruby:3.3.0-slim-bookworm as base
|
2
|
+
|
3
|
+
RUN apt-get update -qq \
|
4
|
+
&& apt-get install -yq --no-install-recommends git build-essential less
|
5
|
+
|
6
|
+
WORKDIR /app
|
7
|
+
|
8
|
+
COPY Gemfile shaman.gemspec ./
|
9
|
+
COPY lib/shaman/version.rb lib/shaman/version.rb
|
10
|
+
|
11
|
+
RUN bundle install
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Shaman
|
4
4
|
|
5
|
-
|
5
|
+
CLI for deploying builds to Tryoutapps.com
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -20,6 +20,7 @@ Export your Tryoutapps tenant URL to the environement variable `SERVER_URL`
|
|
20
20
|
|
21
21
|
|
22
22
|
## Usage
|
23
|
+
First make sure that you have created your `project` and the desired `environment` on you Tryoutapps tenant. This will allow you to see all your tenant independent projects in the shaman init prompt.
|
23
24
|
|
24
25
|
### Init
|
25
26
|
|
@@ -57,13 +58,13 @@ This will deploy your relese file to labs with with configs from .shaman.yml
|
|
57
58
|
Deploy a release to specified environment
|
58
59
|
|
59
60
|
Options:
|
60
|
-
-m, --message MESSAGE
|
61
|
-
-f, --file FILE
|
62
|
-
-t, --token TOKEN
|
63
|
-
-c, --config FILE
|
64
|
-
-g, --git
|
65
|
-
-C, --commit COMMIT
|
66
|
-
|
61
|
+
-m, --message MESSAGE Changelog message
|
62
|
+
-f, --file FILE Release path
|
63
|
+
-t, --token TOKEN Use different user token
|
64
|
+
-c, --config FILE Use different config file
|
65
|
+
-g, --git Use git for message (overrides any manual settings!)
|
66
|
+
-C, --commit COMMIT Which commit to use instead of HEAD
|
67
|
+
-n, --release_name RELEASE_NAME Release name (ZIP platform only)
|
67
68
|
|
68
69
|
## License
|
69
70
|
|
data/docker-compose.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
version: '3.9'
|
2
|
+
name: infinum-shaman
|
3
|
+
|
4
|
+
services:
|
5
|
+
runner:
|
6
|
+
build:
|
7
|
+
context: .
|
8
|
+
image: shaman:1.0.0
|
9
|
+
environment:
|
10
|
+
HISTFILE: /app/tmp/bash_history
|
11
|
+
SHAMAN_TOKEN: change-me
|
12
|
+
volumes:
|
13
|
+
- .:/app:cached
|
14
|
+
command: ['bash']
|
15
|
+
stdin_open: true
|
16
|
+
tty: true
|
data/exe/shaman
CHANGED
@@ -31,8 +31,9 @@ command :deploy do |c|
|
|
31
31
|
c.option '-t', '--token TOKEN', String, 'Use different user token'
|
32
32
|
c.option '-c', '--config FILE', String, 'Use different config file'
|
33
33
|
c.option '-g', '--git', 'Use git for message (overrides any manual settings!)'
|
34
|
-
c.option '-C', '--commit COMMIT', String, '
|
34
|
+
c.option '-C', '--commit COMMIT', String, 'Which commit to use instead of HEAD'
|
35
35
|
c.option '-M', '--minimum_version', 'Set release as minimum version'
|
36
|
+
c.option '-n', '--release_name RELEASE_NAME', String, 'Release name (ZIP platform only)'
|
36
37
|
c.action do |args, options|
|
37
38
|
begin
|
38
39
|
Shaman::Deploy.new(args, options).deploy
|
data/lib/shaman/deploy.rb
CHANGED
@@ -26,7 +26,8 @@ module Shaman
|
|
26
26
|
release: HTTP::FormData::File.new(options.file || config[:release_path]),
|
27
27
|
message: message || '',
|
28
28
|
token: options.token || ENV['SHAMAN_TOKEN'],
|
29
|
-
minimum_version: options.minimum_version || false
|
29
|
+
minimum_version: options.minimum_version || false,
|
30
|
+
name: options.release_name || ''
|
30
31
|
}
|
31
32
|
end
|
32
33
|
|
data/lib/shaman/init.rb
CHANGED
data/lib/shaman/version.rb
CHANGED
data/shaman.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler'
|
22
|
-
spec.add_development_dependency 'rake'
|
21
|
+
spec.add_development_dependency 'bundler'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
23
|
spec.add_development_dependency 'rspec'
|
24
24
|
spec.add_development_dependency 'pry-byebug'
|
25
25
|
spec.add_dependency 'http'
|
data/tmp/.keep
ADDED
File without changes
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shaman_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,16 +130,20 @@ executables:
|
|
130
130
|
extensions: []
|
131
131
|
extra_rdoc_files: []
|
132
132
|
files:
|
133
|
+
- ".dockerignore"
|
133
134
|
- ".gitignore"
|
134
135
|
- ".rspec"
|
136
|
+
- ".ruby-version"
|
135
137
|
- ".travis.yml"
|
136
138
|
- CODE_OF_CONDUCT.md
|
139
|
+
- Dockerfile
|
137
140
|
- Gemfile
|
138
141
|
- LICENSE.txt
|
139
142
|
- README.md
|
140
143
|
- Rakefile
|
141
144
|
- bin/console
|
142
145
|
- bin/setup
|
146
|
+
- docker-compose.yml
|
143
147
|
- exe/shaman
|
144
148
|
- lib/shaman.rb
|
145
149
|
- lib/shaman/deploy.rb
|
@@ -147,11 +151,12 @@ files:
|
|
147
151
|
- lib/shaman/init.rb
|
148
152
|
- lib/shaman/version.rb
|
149
153
|
- shaman.gemspec
|
154
|
+
- tmp/.keep
|
150
155
|
homepage: http://www.infinum.co
|
151
156
|
licenses:
|
152
157
|
- MIT
|
153
158
|
metadata: {}
|
154
|
-
post_install_message:
|
159
|
+
post_install_message:
|
155
160
|
rdoc_options: []
|
156
161
|
require_paths:
|
157
162
|
- lib
|
@@ -166,9 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
171
|
- !ruby/object:Gem::Version
|
167
172
|
version: '0'
|
168
173
|
requirements: []
|
169
|
-
|
170
|
-
|
171
|
-
signing_key:
|
174
|
+
rubygems_version: 3.5.3
|
175
|
+
signing_key:
|
172
176
|
specification_version: 4
|
173
177
|
summary: Command tool for labs
|
174
178
|
test_files: []
|