Sha256: d2e4317b6b72f68d965121967c43a473b82bbb29f35a64f028e1cad1cc7e34b4

Contents?: true

Size: 781 Bytes

Versions: 5

Compression:

Stored size: 781 Bytes

Contents

# typed: strict

module Kuby
  module Docker
    module Packages
      class SimpleManagedPackage
        # extend T::Sig

        # T::Sig::WithoutRuntime.sig { returns(String) }
        attr_reader :name

        # T::Sig::WithoutRuntime.sig { params(name: T.any(String, Symbol)).void }
        def initialize(name)
          @name = name.to_s
        end

        # T::Sig::WithoutRuntime.sig { params(distro: Symbol).returns(String) }
        def package_name_for(distro)
          name
        end

        # T::Sig::WithoutRuntime.sig { params(ver: String).returns(T.self_type) }
        def with_version(ver)
          self
        end

        # T::Sig::WithoutRuntime.sig { returns(T::Boolean) }
        def managed?
          true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuby-core-0.20.2 lib/kuby/docker/packages/simple_managed_package.rb
kuby-core-0.20.1 lib/kuby/docker/packages/simple_managed_package.rb
kuby-core-0.20.0 lib/kuby/docker/packages/simple_managed_package.rb
kuby-core-0.19.0 lib/kuby/docker/packages/simple_managed_package.rb
kuby-core-0.18.0 lib/kuby/docker/packages/simple_managed_package.rb