rvm1-capistrano3 1.2.6 → 1.3.0

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: fa8b9dfef3b0845bed32c177c32468e3abe5d487
4
- data.tar.gz: b5fa774e9d0efbcd4ef3e3d833a155a3a71fa748
3
+ metadata.gz: b743323808aa4e717bec1ae092249d2859eebc9b
4
+ data.tar.gz: 517d18cdee2102b89732603957e1f3ef46287023
5
5
  SHA512:
6
- metadata.gz: 785f532ee97f725fff6a9de3cefc243e4d5637f847a315b9597935520f2c473042cff7fd0a9afc66d68fd1bf6c6d6d4b38b67373cdb4444743757f38b4209030
7
- data.tar.gz: d95a98958c330aa187790e813e7ee1042b3943b92954fe0471b9062e30fa078d17a0e99b9f572df41206cd5059471846176d4e5fbf68b3531f9cb6df78cf4756
6
+ metadata.gz: 1743065dbe07bad4388b46a5339a9e8b6457f3d2e0a72803dd26cbe7f1363069fb68094b0eb138f3d96954e62beb99ac1e52171547b3a94c33918788f76119c5
7
+ data.tar.gz: c9769478c0ac06e2b7ca298ce8bfca8146f4875463da51485fb593379441e7112b95c68d2a82cea3234d057f34422ce87cf71b7c24724e8f82d1ac84f68314a7
@@ -1,2 +1,2 @@
1
1
  load File.expand_path("../tasks/capistrano3.rake", __FILE__)
2
- load File.expand_path("../tasks/capistrano3/install.rake", __FILE__)
2
+ load File.expand_path("../tasks/capistrano3/commands.rake", __FILE__)
@@ -1,5 +1,5 @@
1
1
  module RVM1
2
2
  class Capistrano3
3
- VERSION="1.2.6"
3
+ VERSION="1.3.0"
4
4
  end
5
5
  end
@@ -39,8 +39,9 @@ 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
+ set :rvm1_alias_name, -> { fetch(:application) }
42
43
 
43
- set :rvm1_auto_script_path, -> {
44
+ set :rvm1_auto_script_path, -> {
44
45
  temp_auto_script_path = "#{fetch(:tmp_dir)}/#{fetch(:application)}"
45
46
  if fetch(:ssh_options) && fetch(:ssh_options)[:user]
46
47
  temp_auto_script_path = "#{temp_auto_script_path}-#{fetch(:ssh_options)[:user]}"
@@ -15,7 +15,7 @@ namespace :rvm1 do
15
15
  task :ruby do
16
16
  on roles(fetch(:rvm1_roles, :all)) do
17
17
  within fetch(:release_path) do
18
- execute "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh", "rvm", "install", fetch(:rvm1_ruby_version)
18
+ execute "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh", "rvm", "--install", "install", fetch(:rvm1_ruby_version)
19
19
  end
20
20
  end
21
21
  end
@@ -34,4 +34,19 @@ namespace :rvm1 do
34
34
  before :gems, 'rvm1:hook'
35
35
 
36
36
  end
37
+
38
+ namespace :alias do
39
+ desc "Create an alias for the given"
40
+ task :create do
41
+ on roles(fetch(:rvm1_roles, :all)) do
42
+ within fetch(:release_path) do
43
+ execute "#{fetch(:tmp_dir)}/#{fetch(:application)}/rvm-auto.sh",
44
+ fetch(:rvm1_ruby_version), "rvm", "alias", "create",
45
+ fetch(:rvm1_alias_name), "current"
46
+ end
47
+ end
48
+ end
49
+ before :create, "deploy:updating"
50
+ before :create, 'rvm1:hook'
51
+ end
37
52
  end
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.6
4
+ version: 1.3.0
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-08-13 00:00:00.000000000 Z
11
+ date: 2014-09-24 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
@@ -62,7 +62,7 @@ files:
62
62
  - lib/rvm1/capistrano3.rb
63
63
  - lib/rvm1/capistrano3/version.rb
64
64
  - lib/rvm1/tasks/capistrano3.rake
65
- - lib/rvm1/tasks/capistrano3/install.rake
65
+ - lib/rvm1/tasks/capistrano3/commands.rake
66
66
  - script/install-rvm.sh
67
67
  - script/rvm-auto.sh
68
68
  - test/script_rvm-auto_comment_test.sh
@@ -76,12 +76,12 @@ 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: []
@@ -92,3 +92,4 @@ specification_version: 4
92
92
  summary: RVM 1.x / Capistrano 3.x Integration Gem
93
93
  test_files:
94
94
  - test/script_rvm-auto_comment_test.sh
95
+ has_rdoc: