Class: HammerCLIForeman::DependencyResolver
- Inherits:
-
Object
- Object
- HammerCLIForeman::DependencyResolver
- Defined in:
- lib/hammer_cli_foreman/dependency_resolver.rb
Instance Method Summary collapse
- #action_dependencies(action, options = {}) ⇒ Object
- #resource_dependencies(resource, options = {}) ⇒ Object
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, ={}) [:only_required] = ([:only_required] == true) [:recursive] = !([:recursive] == false) resolve_for_action(action, [], ) end |
#resource_dependencies(resource, options = {}) ⇒ Object
13 14 15 |
# File 'lib/hammer_cli_foreman/dependency_resolver.rb', line 13 def resource_dependencies(resource, ={}) action_dependencies(resource.action(:index), ) end |