Class: Kuby::Docker::Packages::SimpleManagedPackage
- Inherits:
-
Object
- Object
- Kuby::Docker::Packages::SimpleManagedPackage
- Defined in:
- lib/kuby/docker/packages/simple_managed_package.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
T::Sig::WithoutRuntime.sig { returns(String) }.
Instance Method Summary collapse
-
#initialize(name) ⇒ SimpleManagedPackage
constructor
T::Sig::WithoutRuntime.sig { params(name: T.any(String, Symbol)).void }.
-
#managed? ⇒ Boolean
T::Sig::WithoutRuntime.sig { returns(T::Boolean) }.
-
#package_name_for(distro) ⇒ Object
T::Sig::WithoutRuntime.sig { params(distro: Symbol).returns(String) }.
-
#with_version(ver) ⇒ Object
T::Sig::WithoutRuntime.sig { params(ver: String).returns(T.self_type) }.
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
#name ⇒ Object (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) }
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 |