Add a deprecation grouup for core AWS resources

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-02-20 17:44:39 -05:00
parent 46415dfbff
commit fc7f3a65b4
2 changed files with 6 additions and 0 deletions

View file

@ -19,6 +19,11 @@
"action": "ignore",
"prefix": "InSpec Attributes are being renamed to InSpec Inputs to avoid confusion with Chef Attributes.",
"comment": "See #3802"
},
"aws_resources_in_resource_pack": {
"comment": "See #3822",
"action": "ignore",
"prefix": "AWS resources shipped with core InSpec are being to moved to a resource pack for faster iteration. Please update your profiles to depend on git@github.com:inspec/inspec-aws.git ."
}
}
}

View file

@ -1,5 +1,6 @@
module AwsResourceMixin
def initialize(resource_params = {})
Inspec.deprecate(:aws_resources_in_resource_pack, "Resource '#{@__resource_name__}'")
validate_params(resource_params).each do |param, value|
instance_variable_set(:"@#{param}", value)
end