Class: Lambit::Commands::Build::PackagePipCommand

Inherits:
Base show all
Defined in:
lib/lambit/commands/build.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#workspace

Attributes inherited from Subcommands::Base

#dry_run, #exitstatus

Instance Method Summary collapse

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

#pipObject (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

#subcommandObject



98
99
100
# File 'lib/lambit/commands/build.rb', line 98

def subcommand
  @subcommand = "pip install #{self.pip} -q -t #{workspace}/."
end