diff options
author | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-03-19 16:47:26 +0530 |
---|---|---|
committer | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-05-07 14:04:03 +0530 |
commit | 38c62c0c14794045154d886ffaf6f27778e659dd (patch) | |
tree | 0e563f420fce95ed1af6a7b21b187bc08e560647 /lib/chef/resource | |
parent | 66c0fdeb65c19d267bd501550e60cd16d7bb4901 (diff) | |
download | chef-38c62c0c14794045154d886ffaf6f27778e659dd.tar.gz |
Move response_file and response_file_variables out of base package resource
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Fix for Move response_file and response_file_variables out of base package resource
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
update require changes
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Updated require changes
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Fixed some unit test cases
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/apt_package.rb | 8 | ||||
-rw-r--r-- | lib/chef/resource/dpkg_package.rb | 8 | ||||
-rw-r--r-- | lib/chef/resource/package.rb | 8 |
3 files changed, 16 insertions, 8 deletions
diff --git a/lib/chef/resource/apt_package.rb b/lib/chef/resource/apt_package.rb index e55d37fcc8..4ee636062d 100644 --- a/lib/chef/resource/apt_package.rb +++ b/lib/chef/resource/apt_package.rb @@ -35,6 +35,14 @@ class Chef description: "Overwrite existing configuration files with those supplied by the package, if prompted by APT.", default: false + property :response_file, String, + description: "The direct path to the file used to pre-seed a package.", + desired_state: false + + property :response_file_variables, Hash, + description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", + default: lazy { Hash.new }, desired_state: false + end end end diff --git a/lib/chef/resource/dpkg_package.rb b/lib/chef/resource/dpkg_package.rb index 742b291508..f5b9e5f14a 100644 --- a/lib/chef/resource/dpkg_package.rb +++ b/lib/chef/resource/dpkg_package.rb @@ -28,6 +28,14 @@ class Chef property :source, [ String, Array, nil ], description: "The path to a package in the local file system." + + property :response_file, String, + description: "The direct path to the file used to pre-seed a package.", + desired_state: false + + property :response_file_variables, Hash, + description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", + default: lazy { Hash.new }, desired_state: false end end end diff --git a/lib/chef/resource/package.rb b/lib/chef/resource/package.rb index 71f030244b..67b01402a7 100644 --- a/lib/chef/resource/package.rb +++ b/lib/chef/resource/package.rb @@ -52,14 +52,6 @@ class Chef description: "One (or more) additional command options that are passed to the command.", coerce: proc { |x| x.is_a?(String) ? x.shellsplit : x } - property :response_file, String, - description: "The direct path to the file used to pre-seed a package.", - desired_state: false - - property :response_file_variables, Hash, - description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", - default: lazy { Hash.new }, desired_state: false - property :source, String, description: "The optional path to a package on the local file system.", desired_state: false |