prun-ops 0.3.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 145e410dcfe0a24a95369c569ba2102ad5607398ae5e2d7b866399f92493124f
4
- data.tar.gz: 0a46a994d803bd288f99926fa34fc3a58a89dc767fd6c299a2237545f39f224e
3
+ metadata.gz: 13f20e639248de9fa60bf39c61021de876a53cd2a630c2aa11f3bd675b0f266d
4
+ data.tar.gz: 034d5e815f41491bbc99a13f45891e3c9cad189619767f54f2f519acfc557d10
5
5
  SHA512:
6
- metadata.gz: ca74205ba5ece155dfce6f1f63db16307989528c867f6352d7031299d9e09dc141a405195eb8ee8c96492bb71535b769a2a15cb095920e089437193452b93a49
7
- data.tar.gz: 4216109a63c9a4cf43f6f6a0c2a3ab1e67459197b7c0f35fd70ceb57f9cb2e312aa94fc6be8f6c58b51b671e976d2916b61bf2bf4f21480a8b49f26457bf7d05
6
+ metadata.gz: 40a8163199b350fdc663bc74ed3078d59c784724ba76938753c27dc186d115ee9afe94058e607538318bdf40deb6f9da1c526bd0775cc16da69ea3e47c3ae935
7
+ data.tar.gz: 1222bd491a74482535eb548ab5ed63602ddfc37975dd2be6f2ee670ef319a28c21f8db495109d7bc532039db7b287ad663fff8a24ef2e631cf033d7f51176858
@@ -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.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lebrijo