Sha256: 6e76a4650783cb3d9145293422183ee640d745abfb41d9e4f325e14b01eeaac9

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

module Ratch

   class Manager

     def toolset_directory
       File.join(File.dirname(__FILE__), 'toolset')
     end

     #

     def toolset
       files = []
       Dir.chdir(toolset_directory) do
         files = Dir.glob('**/*')
       end
       files
     end

     #

     def tool?(fname)
       file = File.join(toolset_directory, fname)
       if File.exist?(file)
         file
       else
         false
       end
     end

   end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ratch-0.3.0 lib/ratch/manager.rb
ratch-0.4.0 lib/ratch/manager.rb