Ryan Davis
9849906198
Cleaned up TarProvider#initialize.
...
TarProvider still decompresses & reads N+1 times... that's next
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-05 17:33:08 -07:00
Ryan Davis
13301f30d1
Use ||= when possible, esp with lazy hashes.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-05 17:23:48 -07:00
Ryan Davis
e0a835a34d
Added comments to the end of these classes to ease navigation.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-05 17:23:01 -07:00
Ryan Davis
fe4e687721
Try to decode archive contents to UTF-8 to avoid encoding corruption.
...
Fixes #4135 .
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-05 17:22:02 -07:00
Miah Johnson
1e1be43488
Merge pull request #4449 from inspec/snappj/build-only-if-version-bumped
...
Build omnibus and habitat packages only if version was bumped
2019-09-05 12:52:29 -07:00
Jeremiah Snapp
5aa2d0f609
Build omnibus and habitat packages only if version was bumped
...
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2019-09-05 15:30:37 -04:00
Kerry Vance
729d9965ed
fails loudly with unsupported options
...
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
2019-09-05 12:14:36 -07:00
Kerry Vance
540515f796
rename ip-address to ip_address
...
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
2019-09-05 12:13:52 -07:00
Kerry Vance
3454c830a7
add documentation
...
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
2019-09-05 11:56:13 -07:00
Kerry Vance
9dafab2215
removed deprecated alias option
...
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
2019-09-05 11:56:13 -07:00
Kerry Vance
75b17561ee
expand sys_info resource functionality
...
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
2019-09-05 11:56:12 -07:00
Chef Expeditor
4c1523ff88
Bump version to 4.16.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-09-05 13:30:39 +00:00
Clinton Wolfe
dffefc3f0b
Merge pull request #4435 from inspec/zenspider/apt/fix
...
Guard against nil in apt repo parser.
2019-09-05 09:30:22 -04:00
Chef Expeditor
eb9096f14c
Bump version to 4.16.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-09-05 13:28:15 +00:00
Clinton Wolfe
aa1f99d959
Merge pull request #4436 from inspec/zenspider/fix-exec-usage
...
Fixed the formatting of `inspec exec -h` by not using long_desc.
2019-09-05 09:27:58 -04:00
Ryan Davis
8b0f6efb41
Fixed the formatting of inspec exec -h
by not using long_desc.
...
long_desc does some really bad word wrapping stuff that totally breaks
our formatting of the output (like code blocks). So, don't use it. If
we like this, I will apply it to all of them.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 16:54:37 -07:00
Ryan Davis
6e821e787e
Save off supports[:os] and restore it after each test.
...
This fixes some other tests that require supports[:os] to be correct.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
6296fdc688
Replace backticks in test descriptions with single-quotes.
...
Backticks means you can't selectively run one of these tests w/o
subshelling out to `brew`, or having to edit first.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
75ca4613c2
Extended to pick up our internal aws resources as well.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
4590fee51d
Documented lib/inspec/resources.rb current usage.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
3b69967cc8
Fixed a bug in checking supports (strings vs symbols)
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
3f0f675364
Moved rspec/matchers require to somewhere more appropriate.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
2fc9ec3ec7
Refactor into Inspec::DSL.method_missing_resource
...
This way I can add aws lazy loading to only one place.
I don't actually care that this is in Inspec::DSL. There is probably a
better place for it. Suggestions welcome.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
ae88c3ddec
Sped up inspec shell by avoiding pre-registering all reesources.
...
Now it tries to load a resource when `help xxx` is invoked or loads
all resources when `help resources` is invoked. Otherwise, it stays
lazy.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
e413cee6a4
I don't like this, but make chef shell require all resources.
...
I think there is probably a better way to do this, but my first
instinct was that I'd have to dig into hacking pry, and I don't want
to do that right now.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:44:26 -07:00
Ryan Davis
b6bfeffd9e
Make inspec much faster for most commands.
...
Removes pre-loading and registration of resources by adding
method_missing to a couple key areas.
This still drops the ball in some areas, but it is a start.
2019-09-04 15:44:26 -07:00
Ryan Davis
74479e0734
Clean up our use of SecureRandom in Rakefile.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:42:46 -07:00
Ryan Davis
5a26b3c538
Rewrote apt.rb's read_debs' main loop.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:38:08 -07:00
Ryan Davis
1aebd53314
Rework apt.rb's read_debs.
...
This goes a step further and relaxes the parsing quite a bit while
making it more readable and flexible.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:38:08 -07:00
Ryan Davis
4e822f3c37
Refactored V2::Activator into more idiomatic ruby.
...
Predicate methods are usually added to make code more expressive, but
they still act off of normal attributes. Predicate methods are not
setters. This moves from X? to X and then aliases the predicate
method.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:33:48 -07:00
Ryan Davis
de22ba3ac1
Fixed warning from overlapping regexp range.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:33:48 -07:00
Ryan Davis
bb41b4fa8c
Guard against nil in apt repo parser.
...
Fixes #4093 .
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-04 15:32:47 -07:00
Lance Albertson
1e94e3503e
Fix for postfix_conf when using a non-standard config location
...
Pass the first argument of the opts array instead of the whole array which
confuses the SimpleConfig parser. Also added a test which verifies this fixes
the issue.
In addition, change the base_name to something that matches other resource base
names.
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-09-03 15:28:44 -07:00
Chef Expeditor
d1ffce7278
Bump version to 4.16.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-09-03 20:24:54 +00:00
Ryan Davis
31581af6fb
Merge pull request #4441 from inspec/windows/again
...
Extended skip_windows to the end of September.
2019-09-03 13:24:38 -07:00
Ryan Davis
49330e8a8e
Extended skip_windows to the end of September.
...
This is getting depressing...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-09-03 12:08:41 -07:00
Chef Expeditor
98d07aaed0
Update CHANGELOG.md with details from pull request #4440
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-09-03 19:06:01 +00:00
Ryan Davis
e068ef134c
Merge pull request #4440 from shaunyap/master
...
update LCR Roadtrip announcement to 13 cities
2019-09-03 12:05:49 -07:00
Shaun Yap
48338fe722
update LCR Roadtrip announcement to 13 cities
...
Signed-off-by: Shaun Yap <shaunyap@gmail.com>
2019-09-03 10:43:54 -07:00
Chef Expeditor
8562397d78
Bump version to 4.16.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-30 20:20:21 +00:00
kekaichinose
d33870b635
Merge pull request #4214 from inspec/zenspider/fix_nil_file
...
Fixed file resource raising UndefinedMethod on source_path
2019-08-30 13:19:54 -07:00
mhackethal
204c41bfd1
Update users.rb to include new attributes
2019-08-30 22:07:36 +02:00
Chef Expeditor
87eeab4076
Update CHANGELOG.md with details from pull request #4433
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-30 19:15:19 +00:00
kekaichinose
3e048000c2
Merge pull request #4433 from inspec/btm/logo
...
Use new logo branding
2019-08-30 12:14:33 -07:00
Bryan McLellan
ff87f62af5
Use new logo branding
...
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2019-08-29 18:13:21 -04:00
mhackethal
9d7f9e6f39
add cache credentials/meta_info to windows user resource
2019-08-29 23:12:42 +02:00
Chef Expeditor
65d067f59c
Executed '.expeditor/update_dockerfile.sh'
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-29 20:53:36 +00:00
Chef Expeditor
0272b1e7ff
Update CHANGELOG.md with details from pull request #4421
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-29 19:10:54 +00:00
Miah Johnson
25a8390cae
Merge pull request #4421 from inspec/jsinha/update_macos
...
Deprecate macOS 10.12 and add macOS 10.15 support
2019-08-29 12:10:43 -07:00
Chef Expeditor
d72984b8b5
Update CHANGELOG.md with details from pull request #4430
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-29 18:02:41 +00:00