lib/bolt/target.rb in bolt-2.9.0 vs lib/bolt/target.rb in bolt-2.10.0
- old
+ new
@@ -29,11 +29,12 @@
target_alias = nil,
config = nil,
facts = nil,
vars = nil,
features = nil,
- plugin_hooks = nil)
+ plugin_hooks = nil,
+ resources = nil)
from_asserted_hash('uri' => uri)
end
# rubocop:enable Lint/UnusedMethodArgument
def initialize(name, inventory = nil)
@@ -72,9 +73,19 @@
end
def target_alias
inventory_target.target_alias
end
+
+ def resources
+ inventory_target.resources
+ end
+
+ # rubocop:disable Naming/AccessorMethodName
+ def set_resource(resource)
+ inventory_target.set_resource(resource)
+ end
+ # rubocop:enable Naming/AccessorMethodName
def to_h
options.to_h.merge(
'name' => name,
'uri' => uri,