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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a3649b982ea2c25c35ca9c4ab65b595cc591312
4
- data.tar.gz: e2758771f3f09bab789316d94449899c4c343f43
3
+ metadata.gz: ba4830347b7ab9bd010643d075377ec06ea79be3
4
+ data.tar.gz: e4ed094d6fccffcc753384d2e1e7802e6b6bc0f8
5
5
  SHA512:
6
- metadata.gz: 8b115091ff58261551a0aefeece15826d36e02c9a1458643e9fab25709403b9acf7bd77d63c2dd83d30378ff1086b186ea922bb999bdba004ca78f9eff550653
7
- data.tar.gz: a5b491b8d1fba2bbc9ec355aeec1630af1f5bbdc394593237672dcabf977db57d43304a89e9545a89afb3c653755fdb381c0cc320404d25a4a052c86b20b405f
6
+ metadata.gz: 4469fd27174812d213d5702ae3573465826fb75713e400c91c02b80c93c48f4bb18a3e85c17ad4fb61201bdd344810cc1392ec1595c36c29b3689cad259b3ef2
7
+ data.tar.gz: 1b17c898c7b63775d1f2d1b214c745168763e7feae2b3c1af89b5dc5a6b34c757efddec00ba3f3dd7b78d915ac39b6f4ef4f82376fe5eaf389b04949a94e95b7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
2
 
3
+ - Fixed Typo in README
3
4
  - 0.3.0 Added `list` command
4
5
  - Added `list` command, which lists the first 250 servers for the given region.
5
6
  - Added ssh-username to establishing connection-announcement.
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
- ### list
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 current state:
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
 
@@ -46,7 +46,9 @@ module DimensionShell
46
46
  _api_access_failed result
47
47
  else
48
48
  result['server'].each { |server|
49
- puts "#{server['name']} (#{server['operatingSystem']['displayName']}) - #{server['state']}"
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
@@ -1,3 +1,3 @@
1
1
  module DimensionShell
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  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.3.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-04 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler