Class: Lambit::Commands::Build::PackagePipCommand
- Inherits:
-
Base
- Object
- Subcommands::Base
- Base
- Lambit::Commands::Build::PackagePipCommand
- Defined in:
- lib/lambit/commands/build.rb
Instance Attribute Summary collapse
-
#pip ⇒ Object
readonly
Returns the value of attribute pip.
Attributes inherited from Base
Attributes inherited from Subcommands::Base
Instance Method Summary collapse
-
#initialize(opts, args) ⇒ PackagePipCommand
constructor
A new instance of PackagePipCommand.
- #subcommand ⇒ Object
Methods inherited from Subcommands::Base
#is_successful?, #output, run, #run, #successful?
Constructor Details
#initialize(opts, args) ⇒ PackagePipCommand
Returns a new instance of PackagePipCommand.
93 94 95 96 |
# File 'lib/lambit/commands/build.rb', line 93 def initialize(opts, args) super @pip = args[0] end |
Instance Attribute Details
#pip ⇒ Object (readonly)
Returns the value of attribute pip.
91 92 93 |
# File 'lib/lambit/commands/build.rb', line 91 def pip @pip end |
Instance Method Details
#subcommand ⇒ Object
98 99 100 |
# File 'lib/lambit/commands/build.rb', line 98 def subcommand @subcommand = "pip install #{self.pip} -q -t #{workspace}/." end |