Class: HammerCLIForeman::DependencyResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli_foreman/dependency_resolver.rb

Instance Method Summary collapse

Instance Method Details

#action_dependencies(action, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/hammer_cli_foreman/dependency_resolver.rb', line 6

def action_dependencies(action, options={})
  options[:only_required] = (options[:only_required] == true)
  options[:recursive] = !(options[:recursive] == false)

  resolve_for_action(action, [], options)
end

#resource_dependencies(resource, options = {}) ⇒ Object



13
14
15
# File 'lib/hammer_cli_foreman/dependency_resolver.rb', line 13

def resource_dependencies(resource, options={})
  action_dependencies(resource.action(:index), options)
end