dctl_rb 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -0
- data/exe/dctl +7 -0
- data/lib/dctl/.version.rb.swp +0 -0
- data/lib/dctl/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5eaee434685825b8708f717b94ea7dc7b0f0ede167e18e0473e5989ebef731e
|
4
|
+
data.tar.gz: ec6c2be7cad1a6f7810117a2cf4432e2d686938839a395759bb8c2e0d5058a38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a6cd96deb63a081d69e30f4ff997c6ef137c81b1294595ca075234d00f82895a65ee473d994c63efa65a77e2d6c794b31e4b5d5cda63ec7b5cfff4f7d2bdc2a
|
7
|
+
data.tar.gz: d201464c9c37d3dfcf88e4e148f00574ce6f2dc9d33dc72d7504ecb31471199d342fdaeda743d27e0be8c3b713e3e6a84b3c8120518fa7b8ce17e1a322a42118
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dctl_rb (0.
|
4
|
+
dctl_rb (0.8.0)
|
5
5
|
config (>= 1, < 2)
|
6
6
|
rainbow (>= 2.2, < 3)
|
7
7
|
rake (~> 12)
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
dry-equalizer (~> 0.2)
|
51
51
|
dry-logic (~> 0.4, >= 0.4.0)
|
52
52
|
dry-types (~> 0.12.0)
|
53
|
-
i18n (0.9.
|
53
|
+
i18n (0.9.3)
|
54
54
|
concurrent-ruby (~> 1.0)
|
55
55
|
inflecto (0.0.2)
|
56
56
|
minitest (5.11.1)
|
data/README.md
CHANGED
@@ -16,6 +16,7 @@ Each command relies on information in the `docker-compose.yaml` for the given en
|
|
16
16
|
The default environment is `dev`, but you can override this with `--env prod` etc.
|
17
17
|
* This just tells dctl where to look for your compose file--it doesn't actually do anything different. See [Installation](#Installation) for more info.
|
18
18
|
|
19
|
+
Some commands:
|
19
20
|
* `dctl up`
|
20
21
|
* `dctl down`
|
21
22
|
* `dctl build`
|
data/exe/dctl
CHANGED
@@ -120,6 +120,13 @@ module Dctl
|
|
120
120
|
stream_output "#{sudo}docker-compose -f #{dctl.compose_file_path} run #{image} #{commands.join(" ")}", exec: true
|
121
121
|
end
|
122
122
|
|
123
|
+
desc "exec [IMAGE] [COMMAND]", "Execute a command on the given _running_ image"
|
124
|
+
map exec: :_exec # avoid overwriting Kernel#exec
|
125
|
+
def _exec(image, *commands)
|
126
|
+
dctl = Dctl::Main.new env: options[:env]
|
127
|
+
stream_output "#{sudo}docker-compose -f #{dctl.compose_file_path} exec #{image} #{commands.join(" ")}", exec: true
|
128
|
+
end
|
129
|
+
|
123
130
|
desc "recreate", "Stop, remove, build, create, and start a container"
|
124
131
|
option :build, type: :boolean, default: true, aliases: %w(b)
|
125
132
|
def recreate(container)
|
Binary file
|
data/lib/dctl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dctl_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Toniazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- dctl_rb.gemspec
|
150
150
|
- exe/dctl
|
151
151
|
- lib/dctl.rb
|
152
|
+
- lib/dctl/.version.rb.swp
|
152
153
|
- lib/dctl/main.rb
|
153
154
|
- lib/dctl/version.rb
|
154
155
|
homepage: https://github.com/jutonz/dctl_rb
|