capistrano-nomad 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -5
- data/README.md +26 -0
- data/capistrano-nomad.gemspec +2 -4
- metadata +6 -7
- data/lib/capistrano/nomad/version.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c292b51cccede02b32828727665d5db05ef156680bd30c36d828efb24b92487
|
4
|
+
data.tar.gz: 74bbb0362226b713380e368e6c4a1a9ebd15d11f35a93879cc047ccf167ae31b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f26c0cce3bc2a23e46edf0499d2f3d959e9247292043bffac86f0b1a415e6fad654930a1133a8d73c0255b6b31476b5b114b97d42f070193804c59d096fccb51
|
7
|
+
data.tar.gz: 48173cbf24f482fea49d1766fe83d92165f4e268da1f2fb729877aff5ee148ca8ab03c41d26ace981e9ae77abd99581e4f69b9a892053d9cd5e37e7e574a964f
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-nomad (0.2.
|
5
|
-
activesupport
|
4
|
+
capistrano-nomad (0.2.2)
|
5
|
+
activesupport (<= 7.0.8)
|
6
6
|
byebug
|
7
7
|
capistrano (~> 3.0)
|
8
8
|
git
|
@@ -18,16 +18,19 @@ GEM
|
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
20
20
|
tzinfo (~> 2.0)
|
21
|
+
addressable (2.8.5)
|
22
|
+
public_suffix (>= 2.0.2, < 6.0)
|
21
23
|
airbrussh (1.5.0)
|
22
24
|
sshkit (>= 1.6.1, != 1.7.0)
|
23
25
|
byebug (11.1.3)
|
24
|
-
capistrano (3.
|
26
|
+
capistrano (3.17.3)
|
25
27
|
airbrussh (>= 1.0.0)
|
26
28
|
i18n
|
27
29
|
rake (>= 10.0.0)
|
28
30
|
sshkit (>= 1.9.0)
|
29
31
|
concurrent-ruby (1.2.2)
|
30
|
-
git (1.
|
32
|
+
git (1.18.0)
|
33
|
+
addressable (~> 2.8)
|
31
34
|
rchardet (~> 1.8)
|
32
35
|
i18n (1.14.1)
|
33
36
|
concurrent-ruby (~> 1.0)
|
@@ -35,6 +38,7 @@ GEM
|
|
35
38
|
net-scp (4.0.0)
|
36
39
|
net-ssh (>= 2.6.5, < 8.0.0)
|
37
40
|
net-ssh (7.2.0)
|
41
|
+
public_suffix (5.0.3)
|
38
42
|
rake (13.0.6)
|
39
43
|
rchardet (1.8.0)
|
40
44
|
sshkit (1.21.5)
|
@@ -52,4 +56,4 @@ DEPENDENCIES
|
|
52
56
|
capistrano-nomad!
|
53
57
|
|
54
58
|
BUNDLED WITH
|
55
|
-
2.
|
59
|
+
2.4.20
|
data/README.md
CHANGED
@@ -24,6 +24,32 @@ gem install capistrano-nomad
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
+
Add to `Capfile`
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require "capistrano/nomad"
|
31
|
+
install_plugin Capistrano::Nomad
|
32
|
+
```
|
33
|
+
|
34
|
+
Define Nomad jobs within `deploy.rb`
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
nomad_job :app
|
38
|
+
nomad_job :redis
|
39
|
+
|
40
|
+
nomad_namespace :analytics do
|
41
|
+
nomad_job :grafana
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
Utilize tasks
|
46
|
+
|
47
|
+
```shell
|
48
|
+
cap production nomad:app:deploy
|
49
|
+
cap production nomad:redis:purge
|
50
|
+
cap production nomad:analytics:grafana:deploy
|
51
|
+
```
|
52
|
+
|
27
53
|
## Development
|
28
54
|
|
29
55
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/capistrano-nomad.gemspec
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "lib/capistrano/nomad/version"
|
4
|
-
|
5
3
|
Gem::Specification.new do |spec|
|
6
4
|
spec.name = "capistrano-nomad"
|
7
|
-
spec.version =
|
5
|
+
spec.version = "0.2.2"
|
8
6
|
spec.authors = ["James Hu"]
|
9
7
|
|
10
8
|
spec.summary = "Capistrano plugin for deploying and managing Nomad jobs"
|
@@ -29,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
29
27
|
spec.require_paths = ["lib"]
|
30
28
|
|
31
29
|
# Uncomment to register a new dependency of your gem
|
32
|
-
spec.add_dependency "activesupport"
|
30
|
+
spec.add_dependency "activesupport", "<= 7.0.8"
|
33
31
|
spec.add_dependency "byebug"
|
34
32
|
spec.add_dependency "capistrano", "~> 3.0"
|
35
33
|
spec.add_dependency "git"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nomad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 7.0.8
|
20
20
|
type: :runtime
|
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: 7.0.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,7 +129,6 @@ files:
|
|
129
129
|
- lib/capistrano/nomad/helpers/nomad.rb
|
130
130
|
- lib/capistrano/nomad/scm/git_local.rb
|
131
131
|
- lib/capistrano/nomad/tasks/nomad.rake
|
132
|
-
- lib/capistrano/nomad/version.rb
|
133
132
|
- sig/capistrano/nomad.rbs
|
134
133
|
homepage: https://github.com/axsuul/capistrano-nomad
|
135
134
|
licenses:
|