Class: Vito::Recipes::Ruby::Paths
- Inherits:
-
Object
- Object
- Vito::Recipes::Ruby::Paths
- Defined in:
- lib/vito/recipes/ruby/paths.rb
Instance Method Summary collapse
-
#initialize(recipe) ⇒ Paths
constructor
A new instance of Paths.
- #ruby_path ⇒ Object
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_path ⇒ Object
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 |