lib/mixlib/install/backend.rb in mixlib-install-1.1.0 vs lib/mixlib/install/backend.rb in mixlib-install-1.2.0

- old
+ new

@@ -20,17 +20,23 @@ require "mixlib/install/backend/bintray" module Mixlib class Install class Backend + def self.available_versions(options) + backend(options).available_versions + end + def self.info(options) - backend = if options.for_artifactory? - Backend::Artifactory.new(options) - else - Backend::Bintray.new(options) - end + backend(options).info + end - backend.info + def self.backend(options) + if options.for_artifactory? + Backend::Artifactory.new(options) + else + Backend::Bintray.new(options) + end end end end end