rvm1-capistrano3 1.2.4 → 1.2.5

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
2
  SHA1:
3
- metadata.gz: 84284ff699e70f2aee8d335c4d7c258e5eccb140
4
- data.tar.gz: a01980341268e372728fffd86c588f029140a6bb
3
+ metadata.gz: 2c9794f94a6791769a690840bfa61711bec1d779
4
+ data.tar.gz: 2d003c85169585c993b6672c906c01e52d183641
5
5
  SHA512:
6
- metadata.gz: a230cac9e9ecbfc0b710992f66bb8f8f912573539e1d1ce7b730898231e0a40124d7a75b0f6fe0add538c6b0fb454e4b213d406a0f3f1b193f78fb098026dfe3
7
- data.tar.gz: 905bd99c9505d4c3296d67f07b493bfa2371c0721efc9500db54e7e4c2b2719dd3ba67e1fa1fdb037977eb6c1692510c78f6fc804ce22060d7f6dc681227d15a
6
+ metadata.gz: 20137ac0765e89203a86cb85eeab38c1ce7ce2ab9f7ad921430337ffa915861a0dfd18b439588bf6638efa51608792ca6c560b487d3123693c249ef31c36d76a
7
+ data.tar.gz: f99294eb05261c421769d2f8044d21d12c7584caa19f64d51928d4a6c9745d3db690c61d7fde56b02f6f7e895f88d678d28e0c32caeff5da9a674ef39d905e4f
@@ -1,5 +1,5 @@
1
1
  module RVM1
2
2
  class Capistrano3
3
- VERSION="1.2.4"
3
+ VERSION="1.2.5"
4
4
  end
5
5
  end
@@ -2,17 +2,17 @@ namespace :rvm1 do
2
2
  desc "Runs the RVM1 hook - use it before any custom tasks if necessary"
3
3
  task :hook do
4
4
  on roles(fetch(:rvm1_roles, :all)) do
5
- execute :mkdir, "-p", "#{fetch(:tmp_dir)}/#{fetch(:application)}/"
6
- upload! File.expand_path("../../../../script/rvm-auto.sh", __FILE__), "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh"
7
- execute :chmod, "+x", "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh"
5
+ execute :mkdir, "-p", "#{fetch(:rvm1_auto_script_path)}/"
6
+ upload! File.expand_path("../../../../script/rvm-auto.sh", __FILE__), "#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh"
7
+ execute :chmod, "+x", "#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh"
8
8
  end
9
9
 
10
10
  if
11
11
  roles(fetch(:rvm1_roles, :all)).any?
12
12
  then
13
- SSHKit.config.command_map.prefix[:rvm].unshift("#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh")
13
+ SSHKit.config.command_map.prefix[:rvm].unshift("#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh")
14
14
 
15
- rvm_prefix = "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh #{fetch(:rvm1_ruby_version)}"
15
+ rvm_prefix = "#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh #{fetch(:rvm1_ruby_version)}"
16
16
  fetch(:rvm1_map_bins).each do |command|
17
17
  SSHKit.config.command_map.prefix[command.to_sym].unshift(rvm_prefix)
18
18
  end
@@ -39,6 +39,13 @@ namespace :load do
39
39
  task :defaults do
40
40
  set :rvm1_ruby_version, "."
41
41
  set :rvm1_map_bins, %w{rake gem bundle ruby}
42
+
43
+ temp_auto_script_path = "#{fetch(:tmp_dir)}/#{fetch(:application)}"
44
+ if fetch(:ssh_options) && fetch(:ssh_options)[:user]
45
+ temp_auto_script_path = "#{temp_auto_script_path}-#{fetch(:ssh_options)[:user]}"
46
+ end
47
+
48
+ set :rvm1_auto_script_path, temp_auto_script_path
42
49
  end
43
50
  end
44
51
 
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm1-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sshkit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tf
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.4.3
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.4.3
55
55
  description: RVM 1.x / Capistrano 3.x Integration Gem
@@ -59,10 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - lib/rvm1/capistrano3/version.rb
63
62
  - lib/rvm1/capistrano3.rb
64
- - lib/rvm1/tasks/capistrano3/install.rake
63
+ - lib/rvm1/capistrano3/version.rb
65
64
  - lib/rvm1/tasks/capistrano3.rake
65
+ - lib/rvm1/tasks/capistrano3/install.rake
66
66
  - script/install-rvm.sh
67
67
  - script/rvm-auto.sh
68
68
  - test/script_rvm-auto_comment_test.sh
@@ -76,17 +76,17 @@ require_paths:
76
76
  - lib
77
77
  required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.3
89
+ rubygems_version: 2.2.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: RVM 1.x / Capistrano 3.x Integration Gem