prun-ops 0.3.5 → 0.3.7

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: 145e410dcfe0a24a95369c569ba2102ad5607398ae5e2d7b866399f92493124f
4
- data.tar.gz: 0a46a994d803bd288f99926fa34fc3a58a89dc767fd6c299a2237545f39f224e
3
+ metadata.gz: 2c64c6a0847ab9db13c46f977fdb0f8b5c3db0098ccf347cc44c38417b4f7dcc
4
+ data.tar.gz: d4f4a2225e3104a276ad4117f6fd0c5f75f24350b16e4a3a7a44bf1eccd07b86
5
5
  SHA512:
6
- metadata.gz: ca74205ba5ece155dfce6f1f63db16307989528c867f6352d7031299d9e09dc141a405195eb8ee8c96492bb71535b769a2a15cb095920e089437193452b93a49
7
- data.tar.gz: 4216109a63c9a4cf43f6f6a0c2a3ab1e67459197b7c0f35fd70ceb57f9cb2e312aa94fc6be8f6c58b51b671e976d2916b61bf2bf4f21480a8b49f26457bf7d05
6
+ metadata.gz: 8dea567a910f2b1b557b9ba10deb455e14ac7db2ad5439af724e37a9a38eee9df232bd05e373de1878399aae1b66117ebdaefcbb7d4b17d82c05740e5b86fa13
7
+ data.tar.gz: 10cfe25bbd8969ab3ee56fec727a3758f69a528841fe5db68a2998a598448ef65f33b5528909d3c67ada5aacd4759f73c14046cb90d4602e3e658548d2bb2424
@@ -6,6 +6,8 @@ namespace :redis do
6
6
  echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
7
7
  sudo apt-get update
8
8
  #{apt_nointeractive} redis
9
+ systemctl enable redis-server
10
+ service redis-server start
9
11
  EOBLOCK
10
12
  end
11
13
  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
 
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.7"
3
3
  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.5
4
+ version: 0.3.7
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-03-21 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler