lib/mixlib/install/backend.rb in mixlib-install-1.2.4 vs lib/mixlib/install/backend.rb in mixlib-install-2.0.0
- old
+ new
@@ -14,12 +14,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require "mixlib/install/backend/artifactory"
-require "mixlib/install/backend/bintray"
+require "mixlib/install/backend/package_router"
module Mixlib
class Install
class Backend
def self.available_versions(options)
@@ -29,14 +28,10 @@
def self.info(options)
backend(options).info
end
def self.backend(options)
- if options.for_artifactory?
- Backend::Artifactory.new(options)
- else
- Backend::Bintray.new(options)
- end
+ Backend::PackageRouter.new(options)
end
end
end
end