docker-cli 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3b534e3b0aa4cba19d8cce7c543f9af128e3186e3315cd2fc9efd4c44610e7e
4
- data.tar.gz: 00ac6d7b9919d13b08d1dbf9fd460491abb35810f57bd032d1e18c41f1ab0b9e
3
+ metadata.gz: 70e675b039f436ae267c09f5ff766d6c6fe80781b3502f01c1684614c994735e
4
+ data.tar.gz: 1e01b0315a9507886da689d63f6f061b4e0455f650b210d4cdce603c8086c036
5
5
  SHA512:
6
- metadata.gz: 5f33fcfe8272f889b4d7c79921b562d969e0318ac76b0660085026ff09a784eabfa1b8cdff5929cffaa2bb771906ad8ca74d9d2996ffb9077bd0433563108249
7
- data.tar.gz: 6342a7d84dc8bd713eac66c09823b41395adb9e1a4e82bad1c5f14c54f5c51762c77d0653c2a1bee9539dd526a6847b3d98613afc137188d99896cd31420f40b
6
+ metadata.gz: 617a1e09957069d7d53876c179f30b22c91efa792d28bec7306913832db9a7369318076ded4328e36c5095437f3984b008bffde276b22a2789110514340e4215
7
+ data.tar.gz: 36be5d9e521662e5da112e495004290935ab2883d62ca7a8dfd8cffc8be3dc269148df1697c935d0d8e70b7f7b879f2b23c6c2d0176678bc170936bcc05acabc
data/.release_history.yml CHANGED
@@ -4,3 +4,5 @@ docker-cli:
4
4
  :timestamp: 1670315972.6015687
5
5
  - :version: 0.1.1
6
6
  :timestamp: 1670648500.3751137
7
+ - :version: 0.2.0
8
+ :timestamp: 1679547303.774784
data/Gemfile CHANGED
@@ -9,9 +9,9 @@ gem "rake", "~> 13.0"
9
9
 
10
10
  gem "rspec", "~> 3.0"
11
11
 
12
- gem 'toolrack', git: 'toolrack', branch: 'master'
13
-
14
- gem 'git_cli', git: "git_cli", branch: "master"
15
- gem 'git_cli_prompt', git: "git_cli_prompt", branch: 'master'
16
- gem 'devops_assist', git: "devops_assist", branch: "master"
12
+ #gem 'toolrack', git: 'toolrack', branch: 'master'
13
+ #
14
+ #gem 'git_cli', git: "git_cli", branch: "master"
15
+ #gem 'git_cli_prompt', git: "git_cli_prompt", branch: 'master'
16
+ #gem 'devops_assist', git: "devops_assist", branch: "master"
17
17
 
data/Gemfile.lock CHANGED
@@ -1,8 +1,17 @@
1
- GIT
2
- remote: devops_assist
3
- revision: 7d0ed10bc1964532be810c347447ec9ee4a61fca
4
- branch: master
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ docker-cli (0.2.1)
5
+ ptools (~> 1.4.3)
6
+ teLogger (~> 0.2.2)
7
+ toolrack (~> 0.20.1)
8
+ tty-command (~> 0.10.1)
9
+ tty-prompt (~> 0.23.1)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
5
13
  specs:
14
+ base58 (0.2.3)
6
15
  devops_assist (0.3.3)
7
16
  git_cli
8
17
  git_cli_prompt
@@ -10,50 +19,16 @@ GIT
10
19
  teLogger
11
20
  toolrack
12
21
  tty-prompt
13
-
14
- GIT
15
- remote: git_cli
16
- revision: 05d83d28f37f4023920b6bf91d975b818d0f13fe
17
- branch: master
18
- specs:
22
+ diff-lcs (1.5.0)
19
23
  git_cli (0.11.2)
20
24
  gvcs
21
25
  ptools (~> 1.4.0)
22
26
  teLogger
23
27
  toolrack
24
-
25
- GIT
26
- remote: git_cli_prompt
27
- revision: b9734eab851922936515f717093b1e2429a24d8a
28
- branch: master
29
- specs:
30
28
  git_cli_prompt (0.3.1)
31
29
  teLogger
32
30
  toolrack
33
31
  tty-prompt
34
-
35
- PATH
36
- remote: .
37
- specs:
38
- docker-cli (0.2.0)
39
- ptools
40
- teLogger
41
- tty-command
42
- tty-prompt
43
-
44
- GIT
45
- remote: toolrack
46
- revision: be0bda340f7f6047e5ceace77b5d0a928bbcdecf
47
- branch: master
48
- specs:
49
- toolrack (0.20.1)
50
- base58
51
-
52
- GEM
53
- remote: https://rubygems.org/
54
- specs:
55
- base58 (0.2.3)
56
- diff-lcs (1.5.0)
57
32
  gvcs (0.1.1)
58
33
  pastel (0.8.0)
59
34
  tty-color (~> 0.5)
@@ -73,6 +48,8 @@ GEM
73
48
  rspec-support (~> 3.12.0)
74
49
  rspec-support (3.12.0)
75
50
  teLogger (0.2.2)
51
+ toolrack (0.20.1)
52
+ base58
76
53
  tty-color (0.6.0)
77
54
  tty-command (0.10.1)
78
55
  pastel (~> 0.8)
@@ -91,13 +68,10 @@ PLATFORMS
91
68
  x86_64-darwin-21
92
69
 
93
70
  DEPENDENCIES
94
- devops_assist!
71
+ devops_assist (~> 0.3.3)
95
72
  docker-cli!
96
- git_cli!
97
- git_cli_prompt!
98
73
  rake (~> 13.0)
99
74
  rspec (~> 3.0)
100
- toolrack!
101
75
 
102
76
  BUNDLED WITH
103
77
  2.4.6
data/docker-cli.gemspec CHANGED
@@ -30,15 +30,15 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- #spec.add_dependency 'toolrack'
34
- spec.add_dependency 'teLogger'
33
+ spec.add_dependency 'toolrack', "~> 0.20.1"
34
+ spec.add_dependency 'teLogger', "~> 0.2.2"
35
35
 
36
- spec.add_dependency 'ptools'
36
+ spec.add_dependency 'ptools', "~> 1.4.3"
37
37
 
38
- spec.add_dependency 'tty-command'
39
- spec.add_dependency 'tty-prompt'
38
+ spec.add_dependency 'tty-command', "~> 0.10.1"
39
+ spec.add_dependency 'tty-prompt', "~> 0.23.1"
40
40
 
41
- #spec.add_development_dependency 'devops_assist'
41
+ spec.add_development_dependency 'devops_assist', "~> 0.3.3"
42
42
 
43
43
  # Uncomment to register a new dependency of your gem
44
44
  # spec.add_dependency "example-gem", "~> 1.0"
@@ -44,8 +44,8 @@ module Docker
44
44
  when "gnome-terminal"
45
45
  `#{terminal} -- bash -c "#{@command_buffer.join(" ")}; exec bash"`
46
46
  when "iTerm2"
47
- `osascript <<EOL
48
- tell application "iTerm"
47
+ `osascript -e \
48
+ 'tell application "iTerm"
49
49
  activate
50
50
 
51
51
  create window with default profile
@@ -57,8 +57,7 @@ module Docker
57
57
  write text "#{@command_buffer.join(" ")}"
58
58
  end tell
59
59
 
60
- end tell
61
- EOL
60
+ end tell'
62
61
  `
63
62
  when "Terminal"
64
63
  `osascript -e \
@@ -70,12 +69,14 @@ module Docker
70
69
  else
71
70
  raise Error, "Unfinished supporting terminal : #{terminal}"
72
71
  end
72
+
73
+ pmt.puts "\n Prompt running inside the Docker shall be opened in a new window\n\n"
73
74
  end
74
75
 
75
76
  else
76
77
  @outStream = []
77
78
  @errStream = []
78
- @result = @runner.run!(@command_buffer.join(" ")) do |out, err|
79
+ result = @runner.run!(@command_buffer.join(" ")) do |out, err|
79
80
  if block
80
81
  block.call(:outstream, out)
81
82
  block.call(:errstream, err)
@@ -85,7 +86,7 @@ module Docker
85
86
  end
86
87
  end
87
88
 
88
- CommandResult.new(@result, @outStream, @errStream)
89
+ CommandResult.new(result, @outStream, @errStream)
89
90
  #{ outStream: @outStream, errStream: @errStream, result: @result }
90
91
  end
91
92
  end
@@ -98,7 +99,7 @@ module Docker
98
99
  def detect_terminal
99
100
  avail = []
100
101
  if TR::RTUtils.on_linux?
101
- possible = [ "gnome-terminal","konsole","cmd.exe", "tilix", "terminator" ]
102
+ possible = [ "gnome-terminal","konsole","tilix", "terminator" ]
102
103
  possible.each do |app|
103
104
  avail << app if not File.which(app).nil?
104
105
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian
@@ -10,62 +10,90 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: toolrack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.20.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.20.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: teLogger
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '0'
33
+ version: 0.2.2
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ">="
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '0'
40
+ version: 0.2.2
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: ptools
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ">="
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '0'
47
+ version: 1.4.3
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: 1.4.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: tty-command
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: 0.10.1
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: 0.10.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: tty-prompt
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: 0.23.1
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.23.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: devops_assist
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.3.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '0'
96
+ version: 0.3.3
69
97
  description: ''
70
98
  email:
71
99
  - cameronian0@protonmail.com