dru 0.5.0 → 0.5.1
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/Gemfile.lock +1 -1
- data/lib/dru/commands/up.rb +4 -9
- data/lib/dru/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e418a317133e3e1d6539c457bbc63ce5f3880df53ea40a7fa75169d17f4516a6
|
|
4
|
+
data.tar.gz: 4caae8cf8666111b678bf78c285af30a5125cd6b24110addb04b19c6f646cfe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c70c0057515e4c9ccd807e4390c093006d988525eb7f5786036e364902e5208955d8f093571cd36eca620355a1c5ba6e35ccf54cb10e9331b1a9394f9b8cdd07
|
|
7
|
+
data.tar.gz: 05a7bad7676ed767a128680ffb9c24e971e899b9c1ff4350c68c19b056c73ba55308c3ebbf4c7317d556637bc66a79d3d601442e1b36d3043eefbd8f12505b22
|
data/Gemfile.lock
CHANGED
data/lib/dru/commands/up.rb
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative '../command'
|
|
4
|
+
require_relative './attach'
|
|
4
5
|
|
|
5
6
|
module Dru
|
|
6
7
|
module Commands
|
|
7
8
|
class Up < Dru::Command
|
|
8
|
-
DOCKER_ATTACH_COMMAND = 'docker attach --detach-keys="ctrl-d"'.freeze
|
|
9
|
-
|
|
10
9
|
def initialize(options:)
|
|
11
10
|
@options = options
|
|
12
11
|
end
|
|
@@ -15,7 +14,7 @@ module Dru
|
|
|
15
14
|
start_docker_compose
|
|
16
15
|
return if options[:detach]
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
attach_to_default_container
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
private
|
|
@@ -24,12 +23,8 @@ module Dru
|
|
|
24
23
|
run_docker_compose_command('up', '-d')
|
|
25
24
|
end
|
|
26
25
|
|
|
27
|
-
def
|
|
28
|
-
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def attach_to_default_container(container_name = 'app')
|
|
32
|
-
system "#{DOCKER_ATTACH_COMMAND} #{container_name_to_id(container_name)}"
|
|
26
|
+
def attach_to_default_container
|
|
27
|
+
Attach.new(options: { container: 'app' }).execute
|
|
33
28
|
end
|
|
34
29
|
end
|
|
35
30
|
end
|
data/lib/dru/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dru
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Rimondi
|
|
@@ -398,8 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
398
398
|
- !ruby/object:Gem::Version
|
|
399
399
|
version: '0'
|
|
400
400
|
requirements: []
|
|
401
|
-
|
|
402
|
-
rubygems_version: 2.7.7
|
|
401
|
+
rubygems_version: 3.0.2
|
|
403
402
|
signing_key:
|
|
404
403
|
specification_version: 4
|
|
405
404
|
summary: DRU - Docker Compose Run Utility
|