karo 2.3.9 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of karo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4801f211493c44ab0ea1981e01f9058f8a4837cc
4
- data.tar.gz: a80460f4a66d4c71e82812837a6422a01a2aa226
3
+ metadata.gz: fbeb1f9c5e56fee1bea90c65450a76c0ab858cba
4
+ data.tar.gz: 58367c6670b6e0f4fbea5f413f6f2484aa31c772
5
5
  SHA512:
6
- metadata.gz: b2823db4024435090b190b28b4369ebf199cdc079371f03453b0da0a396823993a0a29ac7d3f69e2c658455d286e614fba633b9fa1c2157dc83a40109789bdd7
7
- data.tar.gz: df75cb16ea67ede836d82a64b9a1274bab3ea1d2b7b025208d20f487505ca1cf4bec4e434a5a3568e9b5d01c903dcf74ad30896abc81669a26961d60a84193db
6
+ metadata.gz: 8a03825f62d18efe8a602251879da563c90c5e9662929043b63be388579b9ca59710f2d4303a494edecc52bdaf06bc3c020fb175028bbee86ea1bdd36bbff02e
7
+ data.tar.gz: d7af6df0076b05dd3c6e3f00c70e467f28c3face513daf16d55bab1626dd154ba09332a8a7105bd45f33066e7a77b92bcc9d9623b0fa2fffe7042413860ab198
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.4.0
4
+
5
+ ### Bug Fixes
6
+
7
+ - Fixed all SSH commands to load server environment before performing a task
8
+
3
9
  ## v2.3.9
4
10
 
5
11
  ### Features
data/lib/karo/cli.rb CHANGED
@@ -155,8 +155,7 @@ module Karo
155
155
  configuration = Config.load_configuration(options)
156
156
 
157
157
  path = File.join(configuration["path"], "current")
158
- cmd = "cd #{path}; export RAILS_ENV=#{options[:environment]}; \
159
- export RACK_ENV=#{options[:environment]}; $SHELL"
158
+ cmd = "cd #{path}; $SHELL --login"
160
159
 
161
160
  invoke :server, [cmd]
162
161
  end
@@ -166,7 +165,7 @@ module Karo
166
165
  configuration = Config.load_configuration(options)
167
166
 
168
167
  path = File.join(configuration["path"], "current")
169
- cmd = "cd #{path} && bundle exec rails console #{options[:environment]}"
168
+ cmd = "cd #{path} && $SHELL --login -c \"bundle exec rails console\""
170
169
 
171
170
  invoke :server, [cmd]
172
171
  end
@@ -176,7 +175,7 @@ module Karo
176
175
  configuration = Config.load_configuration(options)
177
176
 
178
177
  path = File.join(configuration["path"], "current")
179
- cmd = "cd #{path} && export RAILS_ENV=#{options[:environment]} && bundle exec rake #{command}"
178
+ cmd = "cd #{path} && $SHELL --login -c \"bundle exec rake #{command}\""
180
179
 
181
180
  invoke :server, [cmd, extras]
182
181
  end
data/lib/karo/db.rb CHANGED
@@ -42,7 +42,7 @@ module Karo
42
42
  ssh = "ssh #{configuration["user"]}@#{configuration["host"]}"
43
43
  ssh << " -t" if options[:tty]
44
44
 
45
- command = "cd #{path} && bundle exec rails dbconsole #{options[:environment]} -p"
45
+ command = "cd #{path} && $SHELL --login -c \"bundle exec rails dbconsole -p\""
46
46
 
47
47
  run_it "#{ssh} '#{command}'", options[:verbose]
48
48
  end
data/lib/karo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Karo
2
- VERSION = "2.3.9"
2
+ VERSION = "2.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.9
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahul Trikha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-27 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry