summaryrefslogtreecommitdiff
path: root/lib/package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/package.rb')
-rw-r--r--lib/package.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/package.rb b/lib/package.rb
deleted file mode 100644
index b5c44bb..0000000
--- a/lib/package.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at https://mozilla.org/MPL/2.0/.
-
-# frozen_string_literal: true
-
-class Package
- attr_reader :path, :version, :homepage, :requires
-
- def initialize(path, version:, homepage:, requires: [])
- @path = path
- @version = version
- @homepage = homepage
- @requires = requires
- end
-
- def name
- File.basename @path
- end
-
- def name_version
- "#{name}-#{@version}"
- end
-end