This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.8.7-p334 :001 > rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
=> "/home/mpapis/.rvm" | |
ruby-1.8.7-p334 :002 > rvm_lib_path = File.join(rvm_path, 'lib') | |
=> "/home/mpapis/.rvm/lib" | |
ruby-1.8.7-p334 :003 > $LOAD_PATH.unshift rvm_lib_path | |
=> ["/home/mpapis/.rvm/lib", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/i686-linux", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/vendor_ruby/1.8", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/vendor_ruby/1.8/i686-linux", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/vendor_ruby", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8", "/home/mpapis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/i686-linux", "."] | |
ruby-1.8.7-p334 :004 > RVM.current | |
NameError: uninitialized constant RVM | |
from (irb):4 | |
ruby-1.8.7-p334 :005 > require 'rvm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ /scripts/selector : __rvm_ruby_string() 631 > ruby_string=rbx-2.0.0pre-1.9 | |
+ /scripts/selector : __rvm_ruby_string() 632 > gemset_name= | |
+ /scripts/selector : __rvm_ruby_string() 633 > repo_url= | |
+ /scripts/selector : __rvm_ruby_string() 634 > branch_name= | |
+ /scripts/selector : __rvm_ruby_string() 635 > ruby_name= | |
+ /scripts/selector : __rvm_ruby_string() 637 > __rvm_unset_ruby_variables | |
+ /scripts/functions/env : __rvm_unset_ruby_variables() 2 > unset rvm_ruby_string rvm_ruby_strings rvm_ruby_binary rvm_ruby_gem_home rvm_ruby_gem_path rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_log_path rvm_ruby_major_version rvm_ruby_minor_version rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_repo_branch rvm_ruby_revision rvm_ruby_selected_flag rvm_ruby_tag rvm_ruby_version rvm_ruby_load_path rvm_ruby_require rvm_head_flag rvm_ruby_package_file rvm_ruby_configure rvm_ruby_name rvm_ruby_url rvm_ruby_global_gems_path rvm_ruby_args rvm_ruby_name rvm_llvm_fl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
ruby_id='ruby-1.9.2-p290' | |
gemset_id='proj' | |
environment_id="${ruby_id}@${gemset_id}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# wait_port <port> <seconds> | |
check_port () | |
{ | |
netstat -tpln 2> /dev/null | sed -E '/^[^t]/ d; s/^([^ ]+ +){3}//; s/ .*$//; s/^.*://;' | grep --color "^$1$" > /dev/null | |
} | |
wait_port () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tempfile' | |
file = Tempfile.new(['','blah']) | |
file.open | |
file.write "\n" | |
file.close | |
line = File.read(file.path) | |
line.strip! | |
puts "match:#{line =~ /^$/}:" | |
p line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "$rvm_path/scripts/rvm" | |
rvm install 1.8.7 | |
rvm install 1.9.2 | |
rvm use 1.8.7@abc-test --create --default | |
# status=0 | |
# match=/Using .*ruby-1.8.7.* with gemset abc-test/ | |
rvm current | |
# match=/ruby-1.8.7.*@abc-test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
travis-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if (( $# < 2 )) | |
then | |
echo "ERROR: This script expects at least two arguments" >&2 | |
exit 1 | |
fi | |
RLA_DATE_FMT="%Y-%m-%d %H:%M:%S" | |
infile=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2012-02-24 22:26:46] /home/mpapis/.rvm/wrappers/ruby-1.9.3-p125/rake install | |
/home/mpapis/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config. | |
(in /home/mpapis/.rvm/src/rbx-2.0.testing-d19) | |
/home/mpapis/.rvm/rubies/ruby-1.9.3-p125/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h | |
GEN vm/gen/config_variables.h | |
/home/mpapis/.rvm/rubies/ruby-1.9.3-p125/bin/ruby vm/codegen/encoding_extract.rb /home/mpapis/.rvm/src/rbx-2.0.testing-d19/vendor/oniguruma vm/gen/encoding_database.cpp | |
/home/mpapis/.rvm/rubies/ruby-1.9.3-p125/bin/ruby vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/clas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURDIR=$PWD | |
RVM_SOURCE=$CURDIR/source/wayneeseguin-rvm-45a40ea | |
: configure rvm | |
printf "%b" " | |
export rvm_path=/home/deployer/.rvm | |
export rvm_archives_path=$CURDIR/source/ | |
" > /home/deployer/.rvmrc | |
: install rvm |
OlderNewer