ManageIQ/manageiq

View on GitHub
lib/vmdb/plugins/ansible_content.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Vmdb
  class Plugins
    class AnsibleContent
      attr_reader :path

      def initialize(path)
        raise "#{path} does not exist" unless File.directory?(path)

        roles_path = Pathname.new(path)
        @path = roles_path.split.first
      end
    end
  end
end