lib/bolt/inventory/target.rb
# Validate the target. This implicitly also primes the group and config
# caches and resolves any config references in the target's groups.
Validate the target. This implicitly also primes the group and config
caches and resolves any config references in the target's groups.
Validate the target . This implicitly also primes the group and config caches and resolves any config references in the target ' s groups .
def validate
        unless name.ascii_only?
          raise Bolt::Inventory::ValidationError.new("Target name must be ASCII characters: #{@name}", nil)
        end
        unless transport.nil? || Bolt::TRANSPORTS.include?(transport.to_sym)
          raise Bolt::UnknownTransportError.new(transport, uri)
        end
        validate_fact_names(facts)
        transport_config
      end
def validate unless name . ascii_only? raise Bolt :: Inventory :: ValidationError . new ( "Target name must be ASCII characters: #{@name}" , nil ) end unless transport . nil? || Bolt :: TRANSPORTS . include? ( transport . to_sym ) raise Bolt :: UnknownTransportError . new ( transport , uri ) end validate_fact_names ( facts ) transport_config end
Validate the target.
Validate the target .