rvm 1.9.2 → 1.11.3
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.
- data/README +100 -81
- data/VERSION +1 -1
- data/lib/rvm/capistrano.rb +56 -1
- data/lib/rvm/install_command_dumper.rb +1 -1
- metadata +48 -81
- data/.gemtest +0 -0
- data/History.txt +0 -4163
- data/Manifest.txt +0 -34
- data/Rakefile +0 -131
- data/releases/rvm-1.9.2.tar.gz +0 -0
- data/releases/rvm-1.9.2.tar.gz.md5 +0 -1
- data/sha1 +0 -1
data/Manifest.txt
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
History.txt
|
|
2
|
-
Manifest.txt
|
|
3
|
-
LICENCE
|
|
4
|
-
README
|
|
5
|
-
Rakefile
|
|
6
|
-
VERSION
|
|
7
|
-
sha1
|
|
8
|
-
lib/rvm.rb
|
|
9
|
-
lib/rvm/capistrano.rb
|
|
10
|
-
lib/rvm/environment.rb
|
|
11
|
-
lib/rvm/environment/alias.rb
|
|
12
|
-
lib/rvm/environment/cleanup.rb
|
|
13
|
-
lib/rvm/environment/configuration.rb
|
|
14
|
-
lib/rvm/environment/env.rb
|
|
15
|
-
lib/rvm/environment/gemset.rb
|
|
16
|
-
lib/rvm/environment/info.rb
|
|
17
|
-
lib/rvm/environment/list.rb
|
|
18
|
-
lib/rvm/environment/rubies.rb
|
|
19
|
-
lib/rvm/environment/sets.rb
|
|
20
|
-
lib/rvm/environment/tools.rb
|
|
21
|
-
lib/rvm/environment/utility.rb
|
|
22
|
-
lib/rvm/environment/wrapper.rb
|
|
23
|
-
lib/rvm/errors.rb
|
|
24
|
-
lib/rvm/install_command_dumper.rb
|
|
25
|
-
lib/rvm/shell.rb
|
|
26
|
-
lib/rvm/shell/abstract_wrapper.rb
|
|
27
|
-
lib/rvm/shell/calculate_rvm_path.sh
|
|
28
|
-
lib/rvm/shell/result.rb
|
|
29
|
-
lib/rvm/shell/shell_wrapper.sh
|
|
30
|
-
lib/rvm/shell/single_shot_wrapper.rb
|
|
31
|
-
lib/rvm/shell/utility.rb
|
|
32
|
-
lib/rvm/version.rb
|
|
33
|
-
releases/rvm-1.9.2.tar.gz
|
|
34
|
-
releases/rvm-1.9.2.tar.gz.md5
|
data/Rakefile
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
require "rubygems"
|
|
2
|
-
require "hoe"
|
|
3
|
-
|
|
4
|
-
Hoe.spec "rvm" do
|
|
5
|
-
|
|
6
|
-
developer "Wayne E. Seguin", "wayneeseguin@gmail.com"
|
|
7
|
-
|
|
8
|
-
# TODO: package the release with the API .gem
|
|
9
|
-
#gemspec.files = [
|
|
10
|
-
# "README", "sha1", "LICENCE", "rvm.gemspec",
|
|
11
|
-
# # TODO: Go through manifest carefully.
|
|
12
|
-
# # FOR NOW glob
|
|
13
|
-
# Dir::glob("lib/**/**"),
|
|
14
|
-
# Dir::glob("releases/rvm-#{RVM::Version::STRING}.tar.gz*")
|
|
15
|
-
#].flatten
|
|
16
|
-
|
|
17
|
-
spec_extras[:rdoc_options] = proc do |ary|
|
|
18
|
-
# hoe kinda sucks for this! TODO: submit patch for Hoe#rdoc_options
|
|
19
|
-
ary.push "--inline-source", "--charset=UTF-8"
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
spec_extras[:post_install_message] = <<-POST_INSTALL_MESSAGE
|
|
23
|
-
#{"*" * 80}
|
|
24
|
-
|
|
25
|
-
This gem contains only the Ruby libraries for the RVM Ruby API.
|
|
26
|
-
|
|
27
|
-
In order to install RVM please use one of the methods listed in the
|
|
28
|
-
documentation:
|
|
29
|
-
|
|
30
|
-
https://rvm.beginrescueend.com/rvm/install/
|
|
31
|
-
|
|
32
|
-
such as,
|
|
33
|
-
|
|
34
|
-
bash < <(curl -s -B https://rvm.beginrescueend.com/install/rvm)
|
|
35
|
-
|
|
36
|
-
followed by placing the sourcing line in your ~/.bash_profile or wherever may
|
|
37
|
-
be appropriate for your setup (example, .zshenv, /etc/profile, ...):
|
|
38
|
-
|
|
39
|
-
# Load RVM into a shell session *as a function*
|
|
40
|
-
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
|
|
41
|
-
|
|
42
|
-
After completing setup please open a new shell to use RVM and be sure to run
|
|
43
|
-
'rvm notes' to gain a list of dependencies to install before installing the
|
|
44
|
-
first Ruby. You can read more details about this process on the above
|
|
45
|
-
mentioned install page as well as the basics page:
|
|
46
|
-
|
|
47
|
-
https://rvm.beginrescueend.com/rvm/basics/
|
|
48
|
-
|
|
49
|
-
Enjoy!
|
|
50
|
-
|
|
51
|
-
~Wayne
|
|
52
|
-
|
|
53
|
-
#{"*" * 80}
|
|
54
|
-
POST_INSTALL_MESSAGE
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
task :test do
|
|
58
|
-
exec "bash -l -c \"./test/suite\""
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
#
|
|
62
|
-
# VirtualBox Helpers
|
|
63
|
-
#
|
|
64
|
-
|
|
65
|
-
# Matches a host declaration in a ssh config file.
|
|
66
|
-
HOST_REGEXP = /^\s*Host\s+([^\s#*]+)/
|
|
67
|
-
SNAPSHOT = (ENV['SNAPSHOT'] || 'CURRENT').upcase
|
|
68
|
-
SSH_CONFIG_FILE = ENV['SSH_CONFIG_FILE'] || File.expand_path('../config/ssh', __FILE__)
|
|
69
|
-
|
|
70
|
-
def shell(cmd)
|
|
71
|
-
puts "$ #{cmd}"
|
|
72
|
-
system(cmd)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
def hosts
|
|
76
|
-
@hosts ||= begin
|
|
77
|
-
hosts = []
|
|
78
|
-
|
|
79
|
-
File.open(SSH_CONFIG_FILE) do |io|
|
|
80
|
-
io.each_line do |line|
|
|
81
|
-
next unless line =~ HOST_REGEXP
|
|
82
|
-
hosts << $1
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
hosts
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
namespace :vbox do
|
|
91
|
-
desc "start each vm"
|
|
92
|
-
task :start => :stop do
|
|
93
|
-
hosts.each do |host|
|
|
94
|
-
shell "VBoxManage -q snapshot #{host} restore #{SNAPSHOT}"
|
|
95
|
-
shell "VBoxManage -q startvm #{host} --type headless"
|
|
96
|
-
shell "ssh -MNf -F '#{SSH_CONFIG_FILE}' '#{host}' >/dev/null 2>&1 </dev/null"
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
desc "stop each vm"
|
|
101
|
-
task :stop do
|
|
102
|
-
hosts.each do |host|
|
|
103
|
-
if `VBoxManage -q list runningvms`.include?(host)
|
|
104
|
-
shell "VBoxManage -q controlvm #{host} poweroff"
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
desc 'Run the tests remotely on each VM'
|
|
110
|
-
task :test do
|
|
111
|
-
begin
|
|
112
|
-
Rake::Task["vbox:start"].invoke
|
|
113
|
-
Rake::Task["vbox:remote_test"].invoke
|
|
114
|
-
ensure
|
|
115
|
-
Rake::Task["vbox:stop"].execute(nil)
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
desc 'Run the tests remotely (assuming each VM is running)'
|
|
120
|
-
task :remote_test do
|
|
121
|
-
local_dir = File.expand_path("..", __FILE__)
|
|
122
|
-
remote_dir = "$(pwd)/rvm"
|
|
123
|
-
remote_script = "vboxtest/test_suite.sh"
|
|
124
|
-
sh "'#{File.expand_path("../vboxtest.sh", __FILE__)}' -L '#{local_dir}' -R '#{remote_dir}' -S '#{remote_script}' #{hosts.join(' ')}"
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
desc 'Run the tests locally'
|
|
128
|
-
task :local_test do
|
|
129
|
-
sh File.expand_path("../vboxtest/test_suite.sh", __FILE__)
|
|
130
|
-
end
|
|
131
|
-
end
|
data/releases/rvm-1.9.2.tar.gz
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4863d064158465053d48db38bec91db9
|