elch_scan 0.1.1 → 0.1.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/VERSION +1 -1
- data/bin/elch_scan +3 -14
- data/bin/elch_scan.sh +14 -0
- data/lib/elch_scan/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3079c9829e7b3dc28c655f690c152cb27b4bed7f
|
4
|
+
data.tar.gz: efb9d3275e18d932e31925ff69459d8c043800f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f0b75e0ac99d67f1af98dfc71cfc6eb19b07d57b1aeaa53f0de3e80c720c64b819fc44d8922c85d9640d33c8cecdf7d404ef9ee6dde225523a6cb7a93dbb36
|
7
|
+
data.tar.gz: 1e31fee81ad6047f32deca2d6ae4c54cd531a6f8cbda91a8c8f9a4ed9f95c4c38d0c9695417ff1a665157df31da98af29e4d648bfd1c2f465358a3014ad152f2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/bin/elch_scan
CHANGED
@@ -1,14 +1,3 @@
|
|
1
|
-
#!/bin/
|
2
|
-
|
3
|
-
|
4
|
-
# From: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
|
5
|
-
SOURCE="${BASH_SOURCE[0]}"
|
6
|
-
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
7
|
-
MCLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
8
|
-
SOURCE="$(readlink "$SOURCE")"
|
9
|
-
[[ $SOURCE != /* ]] && SOURCE="$MCLDIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
10
|
-
done
|
11
|
-
PROJECT_ROOT="$( cd -P "$( dirname "$SOURCE" )"/.. && pwd )"
|
12
|
-
|
13
|
-
# Actually run Heatmon
|
14
|
-
cd $PROJECT_ROOT && bundle exec ruby elch_scan.rb "$@"
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require "elch_scan"
|
3
|
+
ElchScan::Application.dispatch(ENV, ARGV)
|
data/bin/elch_scan.sh
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# That's __FILE__ in BASH :)
|
4
|
+
# From: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
|
5
|
+
SOURCE="${BASH_SOURCE[0]}"
|
6
|
+
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
7
|
+
MCLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
8
|
+
SOURCE="$(readlink "$SOURCE")"
|
9
|
+
[[ $SOURCE != /* ]] && SOURCE="$MCLDIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
10
|
+
done
|
11
|
+
PROJECT_ROOT="$( cd -P "$( dirname "$SOURCE" )"/.. && pwd )"
|
12
|
+
|
13
|
+
# Actually run script
|
14
|
+
cd $PROJECT_ROOT && bundle exec ruby elch_scan.rb "$@"
|
data/lib/elch_scan/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elch_scan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Pachnit
|
@@ -114,6 +114,7 @@ email:
|
|
114
114
|
- sven@bmonkeys.net
|
115
115
|
executables:
|
116
116
|
- elch_scan
|
117
|
+
- elch_scan.sh
|
117
118
|
extensions: []
|
118
119
|
extra_rdoc_files: []
|
119
120
|
files:
|
@@ -124,6 +125,7 @@ files:
|
|
124
125
|
- Rakefile
|
125
126
|
- VERSION
|
126
127
|
- bin/elch_scan
|
128
|
+
- bin/elch_scan.sh
|
127
129
|
- doc/config.yml
|
128
130
|
- doc/filter.rb
|
129
131
|
- elch_scan.gemspec
|