capistrano-locally 0.2.4 → 0.2.5

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
- SHA1:
3
- metadata.gz: 7c07e682743413f8a5862183256c902c94586d7a
4
- data.tar.gz: 1550959f694ff3119370a5f037846c7c98a1d370
2
+ SHA256:
3
+ metadata.gz: 70f18185d6d80ce13e5db4fdb1426a68c97a358934e63fe1ebaa9d9e47cc0b73
4
+ data.tar.gz: f4909085562e0519a855b2dab1793f26a95f961d2c24056a57e213fcc0aab5ad
5
5
  SHA512:
6
- metadata.gz: 85e2c0495839a06b69cef6e3280f7e4443d7c5c5900424f150f112fc938c5f00eca84110c2b51a991897dc4678b3bee4b5e8b009b3fa2e3297ce6b03ec2d86f6
7
- data.tar.gz: bd7bb851af86f7398992b01a992cbf429db0d356904d0b7801e70a3a4c8dabc6dd72bfe0b96e8131fdec355799c3d96927f413037943f949a2121e6a14d26233
6
+ metadata.gz: 3eec73f762a82d304d2291305c02f84bf68d060566ea47bad36bfe25068993ffbb4e67e9ee86a87415bc02a4bb3972fa720f346f8edeb97642d1f825e8c5e5c4
7
+ data.tar.gz: eaa0bece1a652af393d9791bfd6c7de35f4583c17134cff7534f9d415e203860e5e367676abfb9e68c299bbffb5e82a92b5f6339c1d231bd39b97e2351599e3a
data/README.md CHANGED
@@ -14,7 +14,7 @@ So, you don't need to write SSH user and configs on `server 'localhost'`.
14
14
  Add this line to your application's Gemfile:
15
15
 
16
16
  ```ruby
17
- gem 'capistrano-locally'
17
+ gem 'capistrano-locally', require: false
18
18
  ```
19
19
 
20
20
  And then execute:
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Locally
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
@@ -17,11 +17,18 @@ module Capistrano
17
17
  localhost = Configuration.env.filter(localhosts).first
18
18
 
19
19
  unless localhost.nil?
20
- if dry_run?
21
- SSHKit::Backend::Printer
20
+ klass = if dry_run?
21
+ SSHKit::Backend::Printer
22
+ else
23
+ SSHKit::Backend::Local
24
+ end
25
+ if defined? Bundler
26
+ Bundler.with_clean_env do
27
+ klass.new(localhost, &block).run
28
+ end
22
29
  else
23
- SSHKit::Backend::Local
24
- end.new(localhost, &block).run
30
+ klass.new(localhost, &block).run
31
+ end
25
32
  end
26
33
 
27
34
  original_on(remotehosts, options, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-locally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.5.1
113
+ rubygems_version: 2.7.3
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Capistrano plugin to simplify "localhost" deployment.