spec/unit/fixtures/cookbooks_api/update_fixtures.rb in chef-cli-3.0.27 vs spec/unit/fixtures/cookbooks_api/update_fixtures.rb in chef-cli-3.0.30
- old
+ new
@@ -1,15 +1,12 @@
require "openssl"
require "net/http" unless defined?(Net::HTTP)
require "json" unless defined?(JSON)
-require "pp"
require "uri"
-THIS_DIR = File.expand_path(File.dirname(__FILE__))
-
-UNIVERSE_JSON_PATH = File.join(THIS_DIR, "universe.json")
-SMALL_UNIVERSE_JSON_PATH = File.join(THIS_DIR, "small_universe.json")
-PRUNED_UNIVERSE_PATH = File.join(THIS_DIR, "pruned_small_universe.json")
+UNIVERSE_JSON_PATH = File.join(__dir__, "universe.json")
+SMALL_UNIVERSE_JSON_PATH = File.join(__dir__, "small_universe.json")
+PRUNED_UNIVERSE_PATH = File.join(__dir__, "pruned_small_universe.json")
COOKBOOKS_IN_SMALL_UNIVERSE = %w{apache2 application apt database mysql nginx postgresql yum}.freeze
universe = URI("https://supermarket.chef.io/universe")