Class: Vito::Recipes::Ruby::Paths

Inherits:
Object
  • Object
show all
Defined in:
lib/vito/recipes/ruby/paths.rb

Instance Method Summary collapse

Constructor Details

#initialize(recipe) ⇒ Paths

Returns a new instance of Paths.



5
6
7
# File 'lib/vito/recipes/ruby/paths.rb', line 5

def initialize(recipe)
  @recipe = recipe
end

Instance Method Details

#ruby_pathObject



9
10
11
# File 'lib/vito/recipes/ruby/paths.rb', line 9

def ruby_path
  @path ||= recipe.query("rbenv which ruby").result.gsub(/\n/, "")
end