hss 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -4
- data/README.md +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74093672f24583511f7c055fae3a178085cbca1b
|
4
|
+
data.tar.gz: 5dcc50f74fd297d219be58075140b992f06c5372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc4b4c355d4df8ad514dd22cff8efa09ba2b902d7984f78e33e8b1165a558b4b00977b25d14fd6858fdcdc0af0cefaf8a395e955b3a2f37d5a7fa74c8ae8ecb
|
7
|
+
data.tar.gz: 4228cce4c2e73936af4872377d6fc17623823938a009e2c7e8b43fd130728d1e3eab1d50d278d9e808c6a02c3ca4a7f1a7d99f864c10ab40a53e4874efb91ed4
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
@@ -15,10 +15,8 @@ email: me@lesaker.org
|
|
15
15
|
executables:
|
16
16
|
- hss
|
17
17
|
extensions: []
|
18
|
-
extra_rdoc_files:
|
19
|
-
- README.md
|
18
|
+
extra_rdoc_files: []
|
20
19
|
files:
|
21
|
-
- README.md
|
22
20
|
- ./hss
|
23
21
|
homepage: https://github.com/akerl/hss
|
24
22
|
licenses:
|
@@ -45,3 +43,4 @@ signing_key:
|
|
45
43
|
specification_version: 4
|
46
44
|
summary: SSH helper
|
47
45
|
test_files: []
|
46
|
+
has_rdoc:
|
data/README.md
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
hss
|
2
|
-
=========
|
3
|
-
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/hss.png)](http://badge.fury.io/rb/hss)
|
5
|
-
|
6
|
-
SSH helper that uses regex and fancy expansion to dynamically manage SSH shortcuts
|
7
|
-
|
8
|
-
## Usage
|
9
|
-
|
10
|
-
1. Install as per the Installation section below
|
11
|
-
2. Set your configuration yaml up as desired (See Configuration below)
|
12
|
-
3. Run `hss help` for a list of available commands
|
13
|
-
4. Run `hss $command` to do that thing
|
14
|
-
|
15
|
-
## Configuration
|
16
|
-
|
17
|
-
1. You can put your configuration in ~/.hss.yml or another file specified by the "HSS\_CONFIG" environment variable.
|
18
|
-
2. The only required configuration section is "patterns", which contains an array of hashes with the following attributes:
|
19
|
-
* note: Name of this pattern ("my servers")
|
20
|
-
* example: Shows how this is used ("jimbo -> root@jimbo.example.org")
|
21
|
-
* short: Regex for shortcut ("^(jimbo|bob|chuck)$")
|
22
|
-
* Use matching to collect things you want to use in the expanded form
|
23
|
-
* long: Expanded form of this shortcut ("root@#$1.example.org")
|
24
|
-
* This will be evaluated using Ruby's string interpolation, so you can use "#{var}", "#$1", "#{function()}", etc.
|
25
|
-
3. Other helpers are available for use in long forms
|
26
|
-
* expand(): Uses the "expansions" section of the comfig. Format for this section is a hash of lists, as such
|
27
|
-
expansions:
|
28
|
-
expanded_form:
|
29
|
-
- short_form1
|
30
|
-
- short_form2
|
31
|
-
- shrtfrm3
|
32
|
-
* shortcut(): Uses the "shortcuts" section of the config. Format for this section is a hash of strings, as such
|
33
|
-
shortcuts:
|
34
|
-
short1: expand to this
|
35
|
-
other_short: 'expand to something else!'
|
36
|
-
* command(): Runs the given string as a command and uses the output for the expanded form
|
37
|
-
|
38
|
-
## Installation
|
39
|
-
|
40
|
-
gem install hss
|
41
|
-
ln -s /path/to/your/config.yml ~/.hss.yml
|
42
|
-
|
43
|
-
## License
|
44
|
-
|
45
|
-
hss is released under the MIT License. See the bundled LICENSE file for details.
|
46
|
-
|