lib/bolt/apply_target.rb in bolt-2.9.0 vs lib/bolt/apply_target.rb in bolt-2.10.0
- old
+ new
@@ -1,11 +1,11 @@
# frozen_string_literal: true
module Bolt
class ApplyTarget
ATTRIBUTES = %i[uri name target_alias config vars facts features
- plugin_hooks safe_name].freeze
+ plugin_hooks resources safe_name].freeze
COMPUTED = %i[host password port protocol user].freeze
attr_reader(*ATTRIBUTES)
attr_accessor(*COMPUTED)
@@ -22,10 +22,11 @@
target_alias = nil,
config = nil,
facts = nil,
vars = nil,
features = nil,
- plugin_hooks = nil)
+ plugin_hooks = nil,
+ resources = nil)
raise Bolt::Error.new("Target objects cannot be instantiated inside apply blocks", 'bolt/apply-error')
end
# rubocop:enable Lint/UnusedMethodArgument
def self._pcore_init_from_hash