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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f424197a6b29d89f689ad542f9db8ddfe254f30cde3921ed1b6f84dbaa0ae91d
4
- data.tar.gz: ffd9b96ead058cd6d9fd5205d3b5abf4ea916d7930f004ebed1de260ed62412e
3
+ metadata.gz: 945e4a6b3bc1cef34066f2ab38aaa8496b1f819e36df039857f23df5b159469d
4
+ data.tar.gz: c7e4e1899fb080b758c28f21b4339ec4441d02bf3f1c0d1df86d0d31795ebea0
5
5
  SHA512:
6
- metadata.gz: '08adcee578dc463265e9974a2150917ab364f98b37165ff809abde7cb722265e9b058b0d87367f7731f6d09379c5e0bda49c594d4393e9f4f8e8159f4c4599be'
7
- data.tar.gz: e7cac12fb1c5e4ba35f29e4ec3604c5109e153327d9c032e6ac8935796e2bbf04482ae49526a1a38e8c4017db1b43e596711cd30272340e82b3a83d7d345469a
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- obs_deploy (0.3.7)
4
+ obs_deploy (0.3.8)
5
5
  cheetah
6
6
  dry-cli
7
7
  git_diff_parser
@@ -84,4 +84,4 @@ DEPENDENCIES
84
84
  webmock
85
85
 
86
86
  BUNDLED WITH
87
- 2.1.4
87
+ 2.2.8
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']
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ObsDeploy
4
- VERSION = '0.3.7'
4
+ VERSION = '0.3.8'
5
5
  end
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.7
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-02-17 00:00:00.000000000 Z
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