Class: Kuby::Docker::Packages::SimpleManagedPackage

Inherits:
Object
  • Object
show all
Defined in:
lib/kuby/docker/packages/simple_managed_package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ SimpleManagedPackage

T::Sig::WithoutRuntime.sig { params(name: T.any(String, Symbol)).void }



13
14
15
# File 'lib/kuby/docker/packages/simple_managed_package.rb', line 13

def initialize(name)
  @name = name.to_s
end

Instance Attribute Details

#nameObject (readonly)

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



10
11
12
# File 'lib/kuby/docker/packages/simple_managed_package.rb', line 10

def name
  @name
end

Instance Method Details

#managed?Boolean

T::Sig::WithoutRuntime.sig { returns(T::Boolean) }

Returns:

  • (Boolean)


28
29
30
# File 'lib/kuby/docker/packages/simple_managed_package.rb', line 28

def managed?
  true
end

#package_name_for(distro) ⇒ Object

T::Sig::WithoutRuntime.sig { params(distro: Symbol).returns(String) }



18
19
20
# File 'lib/kuby/docker/packages/simple_managed_package.rb', line 18

def package_name_for(distro)
  name
end

#with_version(ver) ⇒ Object

T::Sig::WithoutRuntime.sig { params(ver: String).returns(T.self_type) }



23
24
25
# File 'lib/kuby/docker/packages/simple_managed_package.rb', line 23

def with_version(ver)
  self
end