dimension_shell 0.3.0 → 0.4.0
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/CHANGELOG.md +1 -0
- data/README.md +4 -4
- data/lib/dimension_shell/cli.rb +3 -1
- data/lib/dimension_shell/version.rb +1 -1
- 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: ba4830347b7ab9bd010643d075377ec06ea79be3
|
4
|
+
data.tar.gz: e4ed094d6fccffcc753384d2e1e7802e6b6bc0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4469fd27174812d213d5702ae3573465826fb75713e400c91c02b80c93c48f4bb18a3e85c17ad4fb61201bdd344810cc1392ec1595c36c29b3689cad259b3ef2
|
7
|
+
data.tar.gz: 1b17c898c7b63775d1f2d1b214c745168763e7feae2b3c1af89b5dc5a6b34c757efddec00ba3f3dd7b78d915ac39b6f4ef4f82376fe5eaf389b04949a94e95b7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,7 +11,7 @@ root@2a00:33a0:47c0:110:1211:468:ac2d:62de:191f's password: *
|
|
11
11
|
|
12
12
|
## Usage
|
13
13
|
|
14
|
-
### Connect
|
14
|
+
### Connect to a specific server
|
15
15
|
|
16
16
|
```
|
17
17
|
$ dsh connect SERVERNAME -r REGION -o ORGANIZATION -u USERNAME -p PASSWORD -s SHELL_USER
|
@@ -23,7 +23,7 @@ If a matching server is found, its primary ipv6-address is taken to open a ssh-c
|
|
23
23
|
|
24
24
|
If the SHELL_USER is omitted, the connection will be established as `root`.
|
25
25
|
|
26
|
-
###
|
26
|
+
### List servers for region
|
27
27
|
|
28
28
|
```
|
29
29
|
$ dsh list -r REGION -o ORGANIZATION -u USERNAME -p PASSWORD
|
@@ -31,10 +31,10 @@ $ dsh list -r REGION -o ORGANIZATION -u USERNAME -p PASSWORD
|
|
31
31
|
|
32
32
|
Connects to the DimensionData-API at the specified Region with the ORGANIZATION-id, USERNAME and PASSWORD to fetch a list of all servers at the given region.
|
33
33
|
|
34
|
-
If the API-call is successful the returned servernames will be printed, followed by their operating system and their
|
34
|
+
If the API-call is successful the returned servernames will be printed, followed by their operating system, their current state and their primary ipv6-address:
|
35
35
|
|
36
36
|
``
|
37
|
-
super-server (UBUNTU12/64) - NORMAL
|
37
|
+
super-server (UBUNTU12/64) - NORMAL
|
38
38
|
1 server/s in total.
|
39
39
|
``
|
40
40
|
|
data/lib/dimension_shell/cli.rb
CHANGED
@@ -46,7 +46,9 @@ module DimensionShell
|
|
46
46
|
_api_access_failed result
|
47
47
|
else
|
48
48
|
result['server'].each { |server|
|
49
|
-
|
49
|
+
primary_ipv6 = server['networkInfo']['primaryNic']['ipv6']
|
50
|
+
|
51
|
+
puts "#{server['name']} (#{server['operatingSystem']['displayName']}) - #{server['state']}\tipv6: #{primary_ipv6}"
|
50
52
|
}
|
51
53
|
puts %Q(#{result['totalCount']} server/s in total.)
|
52
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dimension_shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Breisch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|