Class: IronWorkerNG::Feature::Python::MergePipDependency::Feature
- Defined in:
- lib/iron_worker_ng/feature/python/merge_pip_dependency.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #build_command ⇒ Object
-
#initialize(code, name, version) ⇒ Feature
constructor
A new instance of Feature.
Methods inherited from Base
#bundle, #container_add, #rebase
Constructor Details
#initialize(code, name, version) ⇒ Feature
Returns a new instance of Feature.
9 10 11 12 13 14 |
# File 'lib/iron_worker_ng/feature/python/merge_pip_dependency.rb', line 9 def initialize(code, name, version) super(code) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/iron_worker_ng/feature/python/merge_pip_dependency.rb', line 6 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/iron_worker_ng/feature/python/merge_pip_dependency.rb', line 7 def version @version end |
Instance Method Details
#build_command ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/iron_worker_ng/feature/python/merge_pip_dependency.rb', line 16 def build_command if @code.full_remote_build "pip '#{@name}', '#{@version}'" elsif @code.remote_build_command "dir '__build__/__pips__'" else nil end end |