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
316 B
Ruby

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