Sha256: d1cf0efe995d5203c54d2b485f40a3b0324b62619870c33713652d6b72eb58e5
Contents?: true
Size: 451 Bytes
Versions: 5
Compression:
Stored size: 451 Bytes
Contents
module HammerCLIForeman module ResourceSupportedTest def execute if resource_supported? super else error = "The server does not support such operation." HammerCLI::Output::Output.print_error error, nil, context, :adapter => adapter 1 end end def resource_supported? resource.call(:index) true rescue RestClient::ResourceNotFound => e false end end end
Version data entries
5 entries across 5 versions & 1 rubygems