Commit 27147db6 authored by Julian Kornberger's avatar Julian Kornberger

Use require_relative

parent 3ce6fb6c
#!/usr/bin/env ruby
require File.expand_path('../../lib/environment', __FILE__)
require_relative '../lib/environment'
generator = ZoneGenerator.new(BASEDIR)
generator = ZoneGenerator.new "#{__dir__}/.."
generator.generate
generator.deploy
......@@ -3,8 +3,6 @@ require 'bundler/setup'
require 'zonefile'
require 'yaml'
BASEDIR = File.expand_path('../..', __FILE__)
require "#{BASEDIR}/lib/hash_ext"
require "#{BASEDIR}/lib/zone"
require "#{BASEDIR}/lib/zone_generator"
require_relative "hash_ext"
require_relative "zone"
require_relative "zone_generator"
require 'minitest/autorun'
require 'test_helper'
require_relative 'test_helper'
describe Zone do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment