prun-ops 0.3.7 → 0.3.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c64c6a0847ab9db13c46f977fdb0f8b5c3db0098ccf347cc44c38417b4f7dcc
4
- data.tar.gz: d4f4a2225e3104a276ad4117f6fd0c5f75f24350b16e4a3a7a44bf1eccd07b86
3
+ metadata.gz: b444c273453554bbd952d409380f5381bf98b86faf067c679145285752c3d82c
4
+ data.tar.gz: 1f87a125967b3c0952916616599016cdea2fa33cb48ba18394a67e92684ea783
5
5
  SHA512:
6
- metadata.gz: 8dea567a910f2b1b557b9ba10deb455e14ac7db2ad5439af724e37a9a38eee9df232bd05e373de1878399aae1b66117ebdaefcbb7d4b17d82c05740e5b86fa13
7
- data.tar.gz: 10cfe25bbd8969ab3ee56fec727a3758f69a528841fe5db68a2998a598448ef65f33b5528909d3c67ada5aacd4759f73c14046cb90d4602e3e658548d2bb2424
6
+ metadata.gz: 58a835b6fa150b42f4b4ed4ad8253ab9def0da4cf512b1f44ad97985a630f6f874e7e31fb83f11b57cdeb23c656bd36f87c8c702f8b9a962b47648fcaf642c77
7
+ data.tar.gz: 816103c4580f7c50886bb68d0f8fffef8b862d05742df125c04cb88b7f4e6a3bb24a3825f2423d395dad0eb12c01a5b0c32c0a537b787fdb042cd97af521a0a8
data/.gitignore CHANGED
@@ -1,6 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
3
+ #/Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ prun-ops (0.3.9)
5
+ capistrano
6
+ capistrano-rails
7
+ capistrano-rvm
8
+ capistrano3-puma
9
+ newrelic_rpm
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ airbrussh (1.5.3)
15
+ sshkit (>= 1.6.1, != 1.7.0)
16
+ capistrano (3.19.2)
17
+ airbrussh (>= 1.0.0)
18
+ i18n
19
+ rake (>= 10.0.0)
20
+ sshkit (>= 1.9.0)
21
+ capistrano-bundler (2.1.1)
22
+ capistrano (~> 3.1)
23
+ capistrano-rails (1.7.0)
24
+ capistrano (~> 3.1)
25
+ capistrano-bundler (>= 1.1, < 3)
26
+ capistrano-rvm (0.1.2)
27
+ capistrano (~> 3.0)
28
+ sshkit (~> 1.2)
29
+ capistrano3-puma (3.1.1)
30
+ capistrano (~> 3.7)
31
+ capistrano-bundler
32
+ puma (~> 3.4)
33
+ concurrent-ruby (1.1.9)
34
+ i18n (1.5.1)
35
+ concurrent-ruby (~> 1.0)
36
+ mutex_m (0.1.2)
37
+ net-scp (4.1.0)
38
+ net-ssh (>= 2.6.5, < 8.0.0)
39
+ net-sftp (2.1.2)
40
+ net-ssh (>= 2.6.5)
41
+ net-ssh (4.2.0)
42
+ newrelic_rpm (8.2.0)
43
+ puma (3.11.4)
44
+ rake (10.3.2)
45
+ sshkit (1.22.0)
46
+ mutex_m
47
+ net-scp (>= 1.1.2)
48
+ net-sftp (>= 2.1.2)
49
+ net-ssh (>= 2.8.0)
50
+
51
+ PLATFORMS
52
+ ruby
53
+
54
+ DEPENDENCIES
55
+ bundler
56
+ prun-ops!
57
+ rake
58
+
59
+ BUNDLED WITH
60
+ 1.17.3
@@ -1,10 +1,12 @@
1
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
- on roles(:app) do |host|
4
- puts args[:hostname]
2
+ task :ssh, :hostname do |_task, args|
3
+ server = roles(:app).select do |s|
4
+ args[:hostname].nil? || (!args[:hostname].nil? && s.hostname.include?(args[:hostname]))
5
+ end
6
+ on server do |host|
5
7
  run_locally do
6
- run_in host, ""
7
- end if args[:hostname].nil? || (!args[:hostname].nil? && host.hostname.include?(args[:hostname]))
8
+ run_in host, ''
9
+ end
8
10
  end
9
11
  end
10
12
 
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.9"
3
3
  end
data/prun-ops.gemspec CHANGED
@@ -24,6 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_runtime_dependency 'capistrano-rails'
25
25
  spec.add_runtime_dependency 'capistrano-rvm'
26
26
  spec.add_runtime_dependency 'capistrano3-puma'
27
- spec.add_runtime_dependency 'thin'
28
27
  spec.add_runtime_dependency 'newrelic_rpm'
29
28
  end
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.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lebrijo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-02 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: thin
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: newrelic_rpm
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +119,7 @@ files:
133
119
  - ".gitignore"
134
120
  - ".ruby-version"
135
121
  - Gemfile
122
+ - Gemfile.lock
136
123
  - LICENSE.txt
137
124
  - README.md
138
125
  - Rakefile