# File lib/hammer_cli_foreman/common_parameter.rb, line 30 def action @action ||= parameter_exist? ? :update : :create @action end
# File lib/hammer_cli_foreman/common_parameter.rb, line 39 def parameter_exist? params = resource.call(:index) params = HammerCLIForeman.collection_to_common_format(params) params.find { |p| p["name"] == option_name } end
Generated with the Darkfish Rdoc Generator 2.