obs_deploy 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile.dev +2 -1
- data/Gemfile.lock +2 -2
- data/README.md +0 -19
- data/lib/obs_deploy/cli/commands.rb +0 -1
- data/lib/obs_deploy/version.rb +1 -1
- metadata +2 -3
- data/lib/obs_deploy/cli/commands/deploy.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 945e4a6b3bc1cef34066f2ab38aaa8496b1f819e36df039857f23df5b159469d
|
4
|
+
data.tar.gz: c7e4e1899fb080b758c28f21b4339ec4441d02bf3f1c0d1df86d0d31795ebea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f6f04fdd95fd49392fd8d8c174c34d62e2cd98a404d844bf291389a5abea9a3b18142b33916aedc6408df77012d52c6ea9f30a8f5ffee429da897622d69842
|
7
|
+
data.tar.gz: 8dd241eba5d8d4067447caf960fbec171d050592a72c87ee5d2d0dd5ebfcb70410741a41f2b5a96d05255ceed0a2753d58068d4e39aa3615646ea6a526758baf
|
data/Dockerfile.dev
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
FROM opensuse/tumbleweed
|
2
2
|
|
3
3
|
RUN zypper --gpg-auto-import-keys refresh
|
4
|
-
RUN zypper install -y openssh vim iputils
|
4
|
+
RUN zypper install -y openssh vim iputils ruby2.7 ruby2.7-devel ruby2.7-rubygem-cheetah ruby2.7-rubygem-nokogiri
|
5
|
+
RUN gem install git_diff_parser dry-cli
|
5
6
|
|
6
7
|
COPY entrypoint.sh /entrypoint.sh
|
7
8
|
RUN chmod +x /entrypoint.sh
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -27,25 +27,6 @@ zypper in ruby2.6-rubygem-obs_deploy
|
|
27
27
|
## Usage
|
28
28
|
|
29
29
|
|
30
|
-
|
31
|
-
### To deploy
|
32
|
-
|
33
|
-
As default it will run in `dry-run` mode (no changes are made)
|
34
|
-
|
35
|
-
#### dry-run:
|
36
|
-
|
37
|
-
`obs_deploy deploy --user root --host localhost`
|
38
|
-
|
39
|
-
or
|
40
|
-
|
41
|
-
`obs_deploy deploy --user root --host localhost --dry-run`
|
42
|
-
|
43
|
-
### deploy
|
44
|
-
|
45
|
-
`obs_deploy deploy --user root --host localhost --no-dry-run`
|
46
|
-
|
47
|
-
|
48
|
-
|
49
30
|
### To check which version is deployed
|
50
31
|
|
51
32
|
`obs_deploy deployed-version [--host <server>]`
|
@@ -17,7 +17,6 @@ module ObsDeploy
|
|
17
17
|
register 'available-package', GetPackageVersion, aliases: ['ap']
|
18
18
|
register 'deployed-version', GetDeployedVersion, aliases: ['dv']
|
19
19
|
register 'version', Version, aliases: ['v', '-v', '--version']
|
20
|
-
register 'deploy', Deploy, aliases: ['dp']
|
21
20
|
register 'refresh-repositories', RefreshRepositories, aliases: ['rr']
|
22
21
|
register 'systemctl', Systemctl, aliases: ['sys']
|
23
22
|
register 'pending-migrations', GetPendingMigration, aliases: ['pm']
|
data/lib/obs_deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obs_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pereira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -182,7 +182,6 @@ files:
|
|
182
182
|
- lib/obs_deploy/apache_sysconfig.rb
|
183
183
|
- lib/obs_deploy/check_diff.rb
|
184
184
|
- lib/obs_deploy/cli/commands.rb
|
185
|
-
- lib/obs_deploy/cli/commands/deploy.rb
|
186
185
|
- lib/obs_deploy/cli/commands/get_deployed_version.rb
|
187
186
|
- lib/obs_deploy/cli/commands/get_diff.rb
|
188
187
|
- lib/obs_deploy/cli/commands/get_package_version.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ObsDeploy
|
4
|
-
module CLI
|
5
|
-
module Commands
|
6
|
-
class Deploy < Dry::CLI::Command
|
7
|
-
desc 'Deploy obs-api'
|
8
|
-
|
9
|
-
option :user, type: :string, default: 'root', desc: 'User'
|
10
|
-
option :dry_run, type: :boolean, default: true, desc: 'Dry run'
|
11
|
-
option :host, type: :string, default: 'localhost', desc: 'Set the server address'
|
12
|
-
option :port, type: :int, default: 22, desc: 'Set the server port'
|
13
|
-
|
14
|
-
def call(user:, dry_run:, host:, port:, **)
|
15
|
-
ssh_driver = ObsDeploy::SSH.new(user: user, server: host, port: port)
|
16
|
-
zypper = ObsDeploy::Zypper.new(dry_run: dry_run)
|
17
|
-
ssh_driver.run(zypper.update)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|