Sha256: 4fea3807f7c3a7406b181a114631c533d8b1191b42240cc3de81ecdf5fc4da4b

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module Massa
  class Tool
    class << self
      def list
        YAML.load_file(config_file_from_gem).merge YAML.load_file(config_file_from_project)
      end

      def config_file_from_gem
        File.expand_path('../../../config/default_tools.yml', __FILE__)
      end

      def config_file_from_project
        "#{Dir.pwd}/config/massa.yml"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
massa-0.1.0 lib/massa/tool.rb