prun-ops 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capistrano/config/ruby.rake +4 -2
- data/lib/capistrano/diagnosis.rake +4 -3
- data/lib/prun-ops/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13f20e639248de9fa60bf39c61021de876a53cd2a630c2aa11f3bd675b0f266d
|
4
|
+
data.tar.gz: 034d5e815f41491bbc99a13f45891e3c9cad189619767f54f2f519acfc557d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a8163199b350fdc663bc74ed3078d59c784724ba76938753c27dc186d115ee9afe94058e607538318bdf40deb6f9da1c526bd0775cc16da69ea3e47c3ae935
|
7
|
+
data.tar.gz: 1222bd491a74482535eb548ab5ed63602ddfc37975dd2be6f2ee670ef319a28c21f8db495109d7bc532039db7b287ad663fff8a24ef2e631cf033d7f51176858
|
@@ -16,17 +16,19 @@ namespace :ruby do
|
|
16
16
|
sudo apt-get update
|
17
17
|
#{apt_nointeractive} rvm
|
18
18
|
sudo usermod -a -G rvm $USER
|
19
|
+
echo '[[ -s /usr/share/rvm/scripts/rvm ]] && source /usr/share/rvm/scripts/rvm' >> ~/.bashrc
|
19
20
|
EOBLOCK
|
20
21
|
end
|
21
22
|
end
|
22
23
|
task :install_rvm_project_version do
|
23
24
|
ruby_version = File.read('.ruby-version').strip
|
25
|
+
ruby_version = ruby_version.start_with?('ruby-') ? ruby_version : "ruby-#{ruby_version}"
|
24
26
|
|
25
27
|
on roles :all do
|
26
28
|
execute <<-EOBLOCK
|
27
29
|
source "/etc/profile.d/rvm.sh"
|
28
|
-
rvm install
|
29
|
-
rvm --default use
|
30
|
+
rvm install #{ruby_version}
|
31
|
+
rvm --default use #{ruby_version}
|
30
32
|
EOBLOCK
|
31
33
|
end
|
32
34
|
end
|
@@ -1,9 +1,10 @@
|
|
1
|
-
desc 'SSH connection with server'
|
2
|
-
task :ssh do
|
1
|
+
desc 'SSH connection with server. If many servers are defined, you can pass a hostname part as argument: cap ssh[hostname]'
|
2
|
+
task :ssh, :hostname do |task, args|
|
3
3
|
on roles(:app) do |host|
|
4
|
+
puts args[:hostname]
|
4
5
|
run_locally do
|
5
6
|
run_in host, ""
|
6
|
-
end
|
7
|
+
end if args[:hostname].nil? || (!args[:hostname].nil? && host.hostname.include?(args[:hostname]))
|
7
8
|
end
|
8
9
|
end
|
9
10
|
|
data/lib/prun-ops/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prun-ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lebrijo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -170,7 +170,7 @@ homepage: http://github.com/jlebrijo/prun-ops
|
|
170
170
|
licenses:
|
171
171
|
- MIT
|
172
172
|
metadata: {}
|
173
|
-
post_install_message:
|
173
|
+
post_install_message:
|
174
174
|
rdoc_options: []
|
175
175
|
require_paths:
|
176
176
|
- lib
|
@@ -185,8 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
rubygems_version: 3.0.
|
189
|
-
signing_key:
|
188
|
+
rubygems_version: 3.0.9
|
189
|
+
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Encapsulates Deployment and Manteinance Operations commands needed for a
|
192
192
|
Rails Application.
|