1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00
dotfiles-local/bin/lib/tools/file.rb

22 lines
313 B
Ruby

class ToolsFile
def initialize
end
def tools
@tools ||= format_tools
end
private
def format_tools
tools_file.lines.map do |tool|
name, version, source = tool.split
[name, {version: version, source: source}]
end.to_h
end
def tools_file
`asdf current 2>&1`
end
end