bastion-cli 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bastion-cli.gemspec +4 -3
- data/lib/bastion/version.rb +1 -1
- data/readme.md +16 -15
- metadata +62 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06897a402c0d4df81e74a1bad5d02bfb2aaf9cc2
|
4
|
+
data.tar.gz: dd648d032abc295e633e53c7121c182e8296761a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b089d15f1e2bf94b2245930009642ed47a71b006a1ab822b0619e943670d56ab16ba75892f87f14d4727044a4d93cadd1f8987db1ffe3bff6441cde02e1be83
|
7
|
+
data.tar.gz: 013426a272f01dd2e800dc2c1dd00e15f314a03cdc9987fb82bfed0d5e0b421f5efa8a186a6e4603050ace1a2743b6047ed8e690471ca72aa0d149c42cd37d6f
|
data/bastion-cli.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift lib
|
2
3
|
|
3
4
|
require "date"
|
4
5
|
require "bastion/version"
|
@@ -7,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
7
8
|
spec.name = "bastion-cli"
|
8
9
|
spec.version = Bastion::VERSION
|
9
10
|
spec.date = (Date.today << 1).to_s
|
10
|
-
spec.
|
11
|
-
spec.
|
11
|
+
spec.summary = "Log into things through bastions."
|
12
|
+
spec.description = File.read(lib + "/../readme.md")
|
12
13
|
spec.authors = ["ptdorf"]
|
13
14
|
spec.email = ["ptdorf@gmail.com"]
|
14
15
|
spec.homepage = "https://github.com/ptdorf/bastion-cli"
|
data/lib/bastion/version.rb
CHANGED
data/readme.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# bastion-cli
|
2
2
|
|
3
|
-
Log into things through
|
3
|
+
Log into things through bastions.
|
4
4
|
|
5
5
|
|
6
6
|
[![Build Status](https://travis-ci.org/ptdorf/bastion-cli.svg?branch=master)](https://travis-ci.org/ptdorf/bastion-cli)
|
@@ -18,33 +18,33 @@ sudo gem install bastion-cli
|
|
18
18
|
```shell
|
19
19
|
# To see all options
|
20
20
|
$ bastion
|
21
|
-
Commands:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
Commands:
|
22
|
+
bastion help [COMMAND] # Describe available commands or one specific command
|
23
|
+
bastion host [HOST] # Show or set the default bastion host
|
24
|
+
bastion ssh [INSTANCE] # Logs into an instance
|
25
|
+
bastion tunnel [PORT] # Starts a new tunnel
|
26
|
+
bastion version # Shows current version
|
27
27
|
|
28
28
|
# To log into an instance
|
29
|
-
bastion ssh 10.1.2.3
|
29
|
+
$ bastion ssh 10.1.2.3
|
30
30
|
|
31
31
|
# To log into an instance specifying a bastion host
|
32
|
-
bastion ssh 10.1.2.3 --host 12.34.56.78
|
32
|
+
$ bastion ssh 10.1.2.3 --host 12.34.56.78
|
33
33
|
|
34
34
|
# To log into an instance specifying a bastion host and make it default
|
35
|
-
bastion ssh 10.1.2.3 --host 12.34.56.78 --save
|
35
|
+
$ bastion ssh 10.1.2.3 --host 12.34.56.78 --save
|
36
36
|
|
37
37
|
# To show the default bastion host
|
38
|
-
bastion host
|
38
|
+
$ bastion host
|
39
39
|
|
40
40
|
# To set the default bastion host
|
41
|
-
bastion host bastion.example.com
|
41
|
+
$ bastion host bastion.example.com
|
42
42
|
|
43
43
|
# To open a tunnel using the default bastion host
|
44
|
-
bastion tunnel
|
44
|
+
$ bastion tunnel
|
45
45
|
|
46
46
|
# To open a tunnel using the default bastion host on port 1337
|
47
|
-
bastion tunnel 1337 --host 12.34.56.78
|
47
|
+
$ bastion tunnel 1337 --host 12.34.56.78
|
48
48
|
```
|
49
49
|
|
50
50
|
You can also set the `BASTION_HOST` environment variable with the address of the
|
@@ -55,4 +55,5 @@ bastion host:
|
|
55
55
|
The pecking order is:
|
56
56
|
|
57
57
|
- `BASTION_HOST` environment variable
|
58
|
-
-
|
58
|
+
- The default value that lives in `${HOME}/.bastion`
|
59
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ptdorf
|
@@ -52,7 +52,66 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description: |+
|
56
|
+
# bastion-cli
|
57
|
+
|
58
|
+
Log into things through bastions.
|
59
|
+
|
60
|
+
|
61
|
+
[![Build Status](https://travis-ci.org/ptdorf/bastion-cli.svg?branch=master)](https://travis-ci.org/ptdorf/bastion-cli)
|
62
|
+
[![Gem Version](https://badge.fury.io/rb/bastion-cli.svg)](https://badge.fury.io/rb/bastion-cli)
|
63
|
+
|
64
|
+
|
65
|
+
## Installation
|
66
|
+
|
67
|
+
```shell
|
68
|
+
sudo gem install bastion-cli
|
69
|
+
```
|
70
|
+
|
71
|
+
## Usage
|
72
|
+
|
73
|
+
```shell
|
74
|
+
# To see all options
|
75
|
+
$ bastion
|
76
|
+
Commands:
|
77
|
+
bastion help [COMMAND] # Describe available commands or one specific command
|
78
|
+
bastion host [HOST] # Show or set the default bastion host
|
79
|
+
bastion ssh [INSTANCE] # Logs into an instance
|
80
|
+
bastion tunnel [PORT] # Starts a new tunnel
|
81
|
+
bastion version # Shows current version
|
82
|
+
|
83
|
+
# To log into an instance
|
84
|
+
$ bastion ssh 10.1.2.3
|
85
|
+
|
86
|
+
# To log into an instance specifying a bastion host
|
87
|
+
$ bastion ssh 10.1.2.3 --host 12.34.56.78
|
88
|
+
|
89
|
+
# To log into an instance specifying a bastion host and make it default
|
90
|
+
$ bastion ssh 10.1.2.3 --host 12.34.56.78 --save
|
91
|
+
|
92
|
+
# To show the default bastion host
|
93
|
+
$ bastion host
|
94
|
+
|
95
|
+
# To set the default bastion host
|
96
|
+
$ bastion host bastion.example.com
|
97
|
+
|
98
|
+
# To open a tunnel using the default bastion host
|
99
|
+
$ bastion tunnel
|
100
|
+
|
101
|
+
# To open a tunnel using the default bastion host on port 1337
|
102
|
+
$ bastion tunnel 1337 --host 12.34.56.78
|
103
|
+
```
|
104
|
+
|
105
|
+
You can also set the `BASTION_HOST` environment variable with the address of the
|
106
|
+
bastion host:
|
107
|
+
|
108
|
+
BASTION_HOST=bastion.example.com bastion ssh web.example.com
|
109
|
+
|
110
|
+
The pecking order is:
|
111
|
+
|
112
|
+
- `BASTION_HOST` environment variable
|
113
|
+
- The default value that lives in `${HOME}/.bastion`
|
114
|
+
|
56
115
|
email:
|
57
116
|
- ptdorf@gmail.com
|
58
117
|
executables:
|
@@ -95,5 +154,5 @@ rubyforge_project:
|
|
95
154
|
rubygems_version: 2.0.14
|
96
155
|
signing_key:
|
97
156
|
specification_version: 4
|
98
|
-
summary: Log into
|
157
|
+
summary: Log into things through bastions.
|
99
158
|
test_files: []
|