dctl_rb 0.7.1 → 0.8.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
  SHA256:
3
- metadata.gz: 881c3cf083a202db78b208ab5e1a33846be5c17fccf36cf1623538999360b7f4
4
- data.tar.gz: e9261364d4de1d04fa037275c91004fc50eb7740fa946da33d1ae76350f4cfb3
3
+ metadata.gz: e5eaee434685825b8708f717b94ea7dc7b0f0ede167e18e0473e5989ebef731e
4
+ data.tar.gz: ec6c2be7cad1a6f7810117a2cf4432e2d686938839a395759bb8c2e0d5058a38
5
5
  SHA512:
6
- metadata.gz: b76b899846edfb0e533afc8d5d1bea5557a17ebb789c5df7334dffcb17ab3297e3db89bc46d2c2f312b472a50c9c3cd428d9756fcdd6b16c4350fdc7da38f07f
7
- data.tar.gz: bd82e69acba8a25e88f0209dfa8a273b1f8fab924dc99fef7b1cd3d0e4ba09dc3a3ef0f15fb4e847689a3345daaabee0f763a72886f330416a5dacd7956097dd
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.7.1)
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.1)
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
@@ -1,3 +1,3 @@
1
1
  module Dctl
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.1
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-20 00:00:00.000000000 Z
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