rkilly 0.0.1 → 0.0.2
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/rkilly.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75c07dcf6f648ecd2b1c382275d46525a2b3541
|
4
|
+
data.tar.gz: 2876667ea9b366fffeeeaf4dd6406fa87fff253b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79444d77f610983edd6bdd529fa41adf7166b585033a992d4df867b5bf623714fca44ff0d4f1e2dc4a9fbc8298f7be6921d2dc43cbaf18b70ec0a044da919165
|
7
|
+
data.tar.gz: 6680dd85740c57c1a16fe8891f00d8b2e298aaf6bf7f77e77847829bdcc319ff1c0125da6c5224c20b4ba6bf9990f33bdb10570610124ded167423f0a9463f78
|
data/lib/rkilly.rb
CHANGED
@@ -2,7 +2,7 @@ module Rkilly
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'commander/import'
|
4
4
|
|
5
|
-
program :version, '0.0.
|
5
|
+
program :version, '0.0.2'
|
6
6
|
program :description, 'Easily kill processes'
|
7
7
|
|
8
8
|
command :kill do |c|
|
@@ -11,7 +11,7 @@ module Rkilly
|
|
11
11
|
c.description = 'Finds all processes that match [process name] and allows you to kill any specific match or all matches.'
|
12
12
|
c.action do |args, options|
|
13
13
|
pname = args[0]
|
14
|
-
data_array = %x(ps aux | grep #{pname} | grep -v grep | awk '{print $2, $11, $12, $13}').split("\n").drop(1)
|
14
|
+
data_array = %x(ps aux | grep -i #{pname} | grep -v grep | awk '{print $2, $11, $12, $13}').split("\n").drop(1)
|
15
15
|
|
16
16
|
container_array = []
|
17
17
|
data_array.each do |cols|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rkilly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Berube
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|