Sha256: 20ad4b604f34508ab0452fdb184fb95f03767ea7d9af900d11427b7309985c8c
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
module Massa class Tool class << self def list YAML.load_file(tools_yaml_file).map { |tool| OpenStruct.new(tool) } end def tools_yaml_file "#{Gem::Specification.find_by_name('massa').gem_dir}/config/default_tools.yml" rescue Gem::LoadError Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ 'massa' gem is not in your Gemfile." exit 1 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
massa-0.0.7 | lib/massa/tool.rb |
massa-0.0.6 | lib/massa/tool.rb |
massa-0.0.5 | lib/massa/tool.rb |