sneaker 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: 487530f3f9cc7dc6032e2b3fd2cb5962a1b5a648
4
- data.tar.gz: fc3c3d065e0283f07a996f835f1527bd46302da9
2
+ SHA256:
3
+ metadata.gz: 0fbcbb693edd822efe433d69310ff96d8192abacafb06564de837ad7ccd343a6
4
+ data.tar.gz: 4af43a5663e5b3d258410f187390ca3c609fe17b28a43f51d3a8c2828676c974
5
5
  SHA512:
6
- metadata.gz: 686f594bc98657cb7c7d093c6cceb5e03b985b83a7968e0e9b6c033cac6326a205c5cbe2fd76c8dd0a7973421c1e47303213f3373a495913bb75c234bef14050
7
- data.tar.gz: d2ff0050e4ba393c76475d2b33cb63da72ef0b79c920aade3f5f1ce8332a90f984ce72dea012ecdc1f1183aecc745545fd7ffa12fa3521923f79a505360f717b
6
+ metadata.gz: 833bd033727083d7046e75133c35d1007a087ac6669a3c483bde22ccf9de6ba358fa5fc15a7f12825b8804246d133d203de0b86a82cb7d8fe471cc8f3a85fd2d
7
+ data.tar.gz: 96d82e435f8095756270473098e7478078a78581a5a08737cd21ce1c569703e4670224e8a9f4569a67a4e242413fc04dd5ebab4692ebb0d1e367a870a7470139
data/lib/sneaker/stage.rb CHANGED
@@ -76,7 +76,10 @@ module Sneaker
76
76
  rails_command = "Account.current = Account.where(name: '#{name_application}').first; print proc { #{rails_command} }.call"
77
77
  escaped_rails_command = escape_single_quotes(rails_command)
78
78
 
79
- server_command = "cd app/current; #{RAILS_RUNNER_ENV} bundle exec rails r '#{escaped_rails_command}'"
79
+ shell_command = "#{RAILS_RUNNER_ENV} bundle exec rails r '#{escaped_rails_command}'"
80
+ escaped_shell_command = escape_single_quotes(shell_command)
81
+
82
+ server_command = "cd app/current; bash --login -c '#{escaped_shell_command}'"
80
83
  escaped_server_command = escape_single_quotes(server_command)
81
84
 
82
85
  result = `ssh #{force_keys} #{user}@#{server} '#{escaped_server_command}' #{debug}`
@@ -1,3 +1,3 @@
1
1
  module Sneaker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ideas4allInnovation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-23 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -193,9 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.6.14
196
+ rubygems_version: 2.7.6
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Sneak rails commands in multiple capistrano stages
200
200
  test_files: []
201
- has_rdoc: