require 'chef/resource/lwrp_base'

class Chef
  class Resource
    # Resource for cpan_module lwrp
    class CpanModule < Chef::Resource::LWRPBase
      self.resource_name = :cpan_module
      actions :install, :uninstall
      default_action :install

      attribute :module, kind_of: String, name_attribute: true
      attribute :force, kind_of: [TrueClass, FalseClass], default: false
      attribute :test, kind_of: [TrueClass, FalseClass], default: false
      attribute :version, kind_of: String, default: nil
      attribute :cwd, kind_of: String, default: nil
    end
  end
end
