Sha256: e335c641b1e86d4477dad2b91f3a974c5c10aac1874818f026fa169caa586606

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

module InspecTools
  module Help
    class << self
      def text(namespaced_command)
        path = namespaced_command.to_s.tr(':', '/')
        path = File.expand_path("../help/#{path}.md", __FILE__)
        IO.read(path) if File.exist?(path)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inspec_tools-3.1.0 lib/inspec_tools/help.rb
inspec_tools-3.1.0.pre1 lib/inspec_tools/help.rb
inspec_tools-3.0.0 lib/inspec_tools/help.rb
inspec_tools-2.3.8 lib/inspec_tools/help.rb
inspec_tools-2.3.7 lib/inspec_tools/help.rb
inspec_tools-2.3.6 lib/inspec_tools/help.rb