immosquare-capistrano 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare/capistrano/github.rb +7 -0
- data/lib/immosquare/capistrano/tasks/github.rake +43 -0
- data/lib/immosquare/capistrano/tasks/puma.rake +0 -1
- data/lib/immosquare/capistrano/tasks/sidekiq.rake +0 -1
- data/lib/immosquare/capistrano/tasks/solid_queue.rake +0 -1
- data/lib/immosquare-capistrano/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a1672e30f736df5c030d606c1c843c367e9ffcb62b581f030094d2c4e056cd
|
4
|
+
data.tar.gz: dc00134b0a50e52d4e1006eec5f37053da00e862210ff825d8625e12c742f6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d068a453e2ce53fac31833e3b7573740e7db3b37c343685f4444be99b3d76a2dc102f35e0c056a7f013b2ff12b6fb9c501128ba58fc147c1bd01035786330a
|
7
|
+
data.tar.gz: 96d53f6b2a619a697bcca06d76ab4d5eaee6ca8aa6c3aae42c6f94bba4ebbcd13439c6a4a8f8b0d01e4a5a1cc0d61d0943bbcb1f32ba999cd176551a2ad3cdb3
|
@@ -0,0 +1,43 @@
|
|
1
|
+
namespace :github do
|
2
|
+
desc "Configure Bundler with GitHub Packages credentials"
|
3
|
+
task :setup do
|
4
|
+
on roles(:app) do
|
5
|
+
##============================================================##
|
6
|
+
## Fetch the GitHub Package username and PAT
|
7
|
+
##============================================================##
|
8
|
+
github_package_username = fetch(:github_package_username)
|
9
|
+
github_package_personal_access_token = fetch(:github_package_personal_access_token)
|
10
|
+
|
11
|
+
##============================================================##
|
12
|
+
## Check if the GitHub username is set
|
13
|
+
##============================================================##
|
14
|
+
if github_package_username.nil?
|
15
|
+
error "GitHub Package username is not set. Please set the :github_package_username"
|
16
|
+
exit 1
|
17
|
+
end
|
18
|
+
|
19
|
+
##============================================================##
|
20
|
+
## Check if the Personal Access Token is set
|
21
|
+
##============================================================##
|
22
|
+
if github_package_personal_access_token.nil?
|
23
|
+
error "GitHub Personal Access Token (PAT) is not set. Please set the :github_package_personal_access_token"
|
24
|
+
exit 1
|
25
|
+
end
|
26
|
+
|
27
|
+
##============================================================##
|
28
|
+
## Provide some feedback before setting the credentials
|
29
|
+
##============================================================##
|
30
|
+
info "Setting Bundler credentials for GitHub Packages..."
|
31
|
+
|
32
|
+
##============================================================##
|
33
|
+
## Set the GitHub Package credentials with Bundler
|
34
|
+
##============================================================##
|
35
|
+
execute :bundle, "config set --global rubygems.pkg.github.com #{github_package_username}:#{github_package_personal_access_token}"
|
36
|
+
|
37
|
+
##============================================================##
|
38
|
+
## Confirm that the credentials were set successfully
|
39
|
+
##============================================================##
|
40
|
+
info "GitHub Packages credentials successfully set for Bundler."
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immosquare-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- immosquare
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -34,17 +34,19 @@ files:
|
|
34
34
|
- lib/immosquare-capistrano.rb
|
35
35
|
- lib/immosquare-capistrano/version.rb
|
36
36
|
- lib/immosquare/capistrano/defaults.rb
|
37
|
+
- lib/immosquare/capistrano/github.rb
|
37
38
|
- lib/immosquare/capistrano/helpers.rb
|
38
39
|
- lib/immosquare/capistrano/puma.rb
|
39
40
|
- lib/immosquare/capistrano/sidekiq.rb
|
40
41
|
- lib/immosquare/capistrano/solid_queue.rb
|
42
|
+
- lib/immosquare/capistrano/tasks/github.rake
|
41
43
|
- lib/immosquare/capistrano/tasks/puma.rake
|
42
44
|
- lib/immosquare/capistrano/tasks/sidekiq.rake
|
43
45
|
- lib/immosquare/capistrano/tasks/solid_queue.rake
|
44
46
|
- lib/immosquare/capistrano/templates/puma.service.erb
|
45
47
|
- lib/immosquare/capistrano/templates/sidekiq.service.erb
|
46
48
|
- lib/immosquare/capistrano/templates/solid_queue.service.erb
|
47
|
-
homepage: https://github.com/
|
49
|
+
homepage: https://github.com/immosquare/immosquare-capistrano
|
48
50
|
licenses:
|
49
51
|
- MIT
|
50
52
|
metadata: {}
|
@@ -63,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
65
|
- !ruby/object:Gem::Version
|
64
66
|
version: '0'
|
65
67
|
requirements: []
|
66
|
-
rubygems_version: 3.5.
|
68
|
+
rubygems_version: 3.5.21
|
67
69
|
signing_key:
|
68
70
|
specification_version: 4
|
69
71
|
summary: Puma, Sidekiq & SolidQueue services integrations for Capistrano
|