Class: Cuken::Api::Rvm::RvmHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/cuken/api/rvm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environment(gemset, options = {}) {|@environment| ... } ⇒ Object (readonly)

Returns the value of attribute environment.

Yields:



16
17
18
# File 'lib/cuken/api/rvm.rb', line 16

def environment
  @environment
end

Instance Method Details

#currentObject



22
23
24
# File 'lib/cuken/api/rvm.rb', line 22

def current
  @current = RVM.current
end

#environment_nameObject



26
27
28
# File 'lib/cuken/api/rvm.rb', line 26

def environment_name
  current.environment_name
end

#gemsetObject



30
31
32
# File 'lib/cuken/api/rvm.rb', line 30

def gemset
  current.gemset
end

#initObject



18
19
20
# File 'lib/cuken/api/rvm.rb', line 18

def init
  RVM::Environment
end