Class: Puppet::Provider::Wildfly

Inherits:
Puppet::Provider
  • Object
show all
Defined in:
lib/puppet/provider/wildfly.rb

Instance Method Summary collapse

Instance Method Details

#cliObject



11
12
13
14
15
16
17
18
# File 'lib/puppet/provider/wildfly.rb', line 11

def cli
  require 'puppet_x/wildfly/api_client'
  require 'puppet_x/wildfly/operation_request'
  timeout = @resource.parameters.include?(:timeout) ? resource[:timeout] : 60

  api_client = PuppetX::Wildfly::APIClient.new(@resource[:host], @resource[:port], @resource[:username], @resource[:password], timeout, @resource[:secure])
  PuppetX::Wildfly::OperationRequest.new(api_client)
end