dort 0.1.2 → 0.1.3

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -2
  3. data/lib/dort.rb +0 -2
  4. data/lib/dort/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e9fa5f415e4a65bffb7c71012e3b216022ca464
4
- data.tar.gz: c30c5475f6f39632e646950fec1ad3e1f71325c3
3
+ metadata.gz: 1b4d05d33a5605314ccf87b860ab64b5a49c4276
4
+ data.tar.gz: 6f27e1007ec297795ed2787eb6b2a8b249cd72ee
5
5
  SHA512:
6
- metadata.gz: 75160ef879500d01383bc32fd96250df1c3ebb0ea13b4938de7891e6e52d3589d59e92101f11eb59064821aa714ce533518aa12d682db97b3b1fb855ee7c47c6
7
- data.tar.gz: 260b78b2cb0c7cd681e9bec8d633a1ccca38b1ac4dce96712beed8e0735f0820def95c2d02739a5f10eba4fc8d267ef28af10a10b5dd4b0c1b133c846e61b7b5
6
+ metadata.gz: a48c84a499ef57eebc862c931e3222e46a5f8878017f8581645fd8dcd7c6cac4c8389001a3b1998b842007aabd892471ff1b563c20c7068a3663131400235beb
7
+ data.tar.gz: 0e58ca161a5c531aa0a321a8f85d836dea1dd085e157e63f85dd88117d9b850cd942f10c30472e16c534c5ef97e27285318ba6a77330de7e931794b43f454713
data/README.md CHANGED
@@ -13,12 +13,35 @@ List port used by container
13
13
  and help
14
14
 
15
15
  $ dort -h
16
+ Usage: dort [options]
17
+ -p, --port show publish ports only
18
+ -e, --expose show expose ports only
19
+ -l, --list list host port used by container
20
+
21
+ example
22
+
23
+ $ dort -l
24
+ HOST_PORTS
25
+ 80
26
+ 443
27
+ 3306
28
+ 5000
29
+ 5432
30
+ 6080
31
+ 6379
32
+ 8080
33
+ 8023
34
+ 10001
35
+ 10002
36
+ 10003
37
+ 10004
38
+ 10005
16
39
 
17
40
  ### Change socket
18
41
  If you need to connect to other server or another location socket, you can set access point via DOCKER_URL variables. For example:
19
42
 
20
- DOCKER_URL=unix:///var/docker.sock dort
21
- DOCKER_URL=tcp://example.com:1000 dort
43
+ $ DOCKER_URL=unix:///var/docker.sock dort
44
+ $ DOCKER_URL=tcp://example.com:1000 dort
22
45
 
23
46
  ## Contributing
24
47
 
@@ -54,9 +54,7 @@ module Dort
54
54
  alias inspect to_s
55
55
  end
56
56
 
57
- ExcutionError = Class.new(StandardError)
58
57
  module_function
59
-
60
58
  def containers
61
59
  Docker::Container.all(all: true).map do |container|
62
60
  Container.new(container.json)
@@ -1,3 +1,3 @@
1
1
  module Dort
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - flum1025