lib/mixlib/install/generator/base.rb in mixlib-install-1.2.4 vs lib/mixlib/install/generator/base.rb in mixlib-install-2.0.0
- old
+ new
@@ -15,11 +15,10 @@
# limitations under the License.
#
require "erb"
require "ostruct"
-require "mixlib/install/backend/omnitruck"
module Mixlib
class Install
class Generator
class Base
@@ -45,10 +44,10 @@
# If there is an erb template we render it, otherwise we just read
# and returnt the contents of the script
if File.exist? "#{script_path}.erb"
# Default values to use incase they are not set in the context
- context[:base_url] ||= Mixlib::Install::Backend::Omnitruck::ENDPOINT
+ context[:base_url] ||= "https://omnitruck.chef.io/"
context_object = OpenStruct.new(context).instance_eval { binding }
ERB.new(File.read("#{script_path}.erb")).result(context_object)
else
File.read(script_path)