Skip to content

Commit

Permalink
Merge pull request #250 from lamont-granquist/lcg/annoy-people
Browse files Browse the repository at this point in the history
add warning message when using 'chefspec' platform
  • Loading branch information
sethvargo committed Aug 24, 2016
2 parents 05eb0b4 + 9ff99d2 commit c024aa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fauxhai/mocker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def fauxhai_data
end

def platform
@options[:platform] ||= 'chefspec'
@options[:platform] ||= begin
STDERR.puts "WARNING: you must specify a platform and platform_version to your ChefSpec Runner and/or Fauxhai constructor, in the future omitting these will become a hard error"
'chefspec'
end
end

def platform_path
Expand Down

0 comments on commit c024aa4

Please sign in to comment.