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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8935b3571ad00021f891cb18350d397994e44df1
4
- data.tar.gz: d8c0fb6c43557c582f14d460aeef30d13f01ffcd
3
+ metadata.gz: dc0c3e1f27e698861c2c9bccffd68f6879ff9da5
4
+ data.tar.gz: e666418ddb4ac4a73d01e0eed0ac40db91c6435a
5
5
  SHA512:
6
- metadata.gz: ce34575e44b6748f0cef1e349c09624063d6e3e30909d8a1faf06d0d16a27e4d4519f18d9e87ece1a4a452396b68d83cf72aafe1635629db7cedf21623254b3a
7
- data.tar.gz: 3ddbb81b43a3dd8183d8713d41ca93539f5e9e6eaed6fba5cd4dd0d49b2a20616725c521eda3d24ff12267f9b75f8212e5cbf77b57ddffef4e04611f28902ad9
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)
@@ -1,3 +1,3 @@
1
1
  module StackCar
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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.0
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-05-15 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler