module Shared
constants loaded in rvmpow.rb
Private Instance Methods
exec_cmd() { || ... }
click to toggle source
Executes given proc if Rack app and rvm binary exists
# File lib/rvmpow/shared_private_methods.rb, line 24 def exec_cmd if ! rakeAppAndRvm error "The current directory does not seem to be the root of a rake app or rvm is not installed. Nothing to do!" exit 0 else yield end end
rakeApp?()
click to toggle source
@return [Boolean]
true if config.ru exists
# File lib/rvmpow/shared_private_methods.rb, line 7 def rakeApp? File.exists?(RvmPow::CONFIG_RU) end
rakeAppAndRvm()
click to toggle source
return [Boolean]
true if Rack app and rvm binary exists
# File lib/rvmpow/shared_private_methods.rb, line 19 def rakeAppAndRvm (rakeApp? && rvm?) end
rvm?()
click to toggle source
return [Boolean]
true if the rvm binary exists
# File lib/rvmpow/shared_private_methods.rb, line 13 def rvm? File.exists?(RvmPow::RVM_BINARY) end