stack_car 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_car/cli.rb +6 -0
- data/lib/stack_car/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc0c3e1f27e698861c2c9bccffd68f6879ff9da5
|
4
|
+
data.tar.gz: e666418ddb4ac4a73d01e0eed0ac40db91c6435a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e16e46c835e97f0807ead8f7b7166f83cf03b4cc3428bd8678c4523edba79c5e8a4907172753c136e682970efb1196e06f961b4910a43f4a6ffccad8652e87a1
|
7
|
+
data.tar.gz: 6c444905ee7725c0258ac4f8a1aa5199276271363928c3ebf5566bf6e6a21ef6ea8b7f133f758d07b985c94ce406239f9516473422d2462a46d812b65a8d132d
|
data/lib/stack_car/cli.rb
CHANGED
@@ -80,6 +80,12 @@ module StackCar
|
|
80
80
|
end
|
81
81
|
map ex: :exec
|
82
82
|
|
83
|
+
method_option :service, default: 'web', type: :string, aliases: '-s'
|
84
|
+
desc 'sh ARGS', "launch a shell using docker-compose exec, sets tty properly"
|
85
|
+
def sh(*args)
|
86
|
+
run("docker-compose exec -e COLUMNS=\"\`tput cols\`\" -e LINES=\"\`tput lines\`\" #{options[:service]} bash #{args.join(' ')}")
|
87
|
+
end
|
88
|
+
|
83
89
|
method_option :service, default: 'web', type: :string, aliases: '-s'
|
84
90
|
desc "bundle_exec ARGS", "wraps docker-compose exec web bundle exec unless --service is used to specify"
|
85
91
|
def bundle_exec(*args)
|
data/lib/stack_car/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stack_car
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Kaufman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|