Class: HammerCLIForemanPuppet::ImportPuppetClassesCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/hammer_cli_foreman_puppet/smart_proxy.rb

Instance Method Summary collapse

Methods included from ResolverCommons

included

Instance Method Details



49
50
51
# File 'lib/hammer_cli_foreman_puppet/smart_proxy.rb', line 49

def print_data(record)
  print_record(output_definition, record)
end

#request_paramsObject



37
38
39
40
41
# File 'lib/hammer_cli_foreman_puppet/smart_proxy.rb', line 37

def request_params
  opts = super
  opts['dryrun'] = option_dryrun? || false
  opts
end

#transform_format(data) ⇒ Object



43
44
45
46
47
# File 'lib/hammer_cli_foreman_puppet/smart_proxy.rb', line 43

def transform_format(data)
  # Overriding the default behavior that tries to remove nesting
  # when there's only {"message": "..."}
  data
end