Class: Lambit::Commands::Build::PackageSourceCommand

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) ⇒ PackageSourceCommand

Returns a new instance of PackageSourceCommand.



108
109
110
111
# File 'lib/lambit/commands/build.rb', line 108

def initialize(opts, args)
  super
  @project_path = opts['project_path']
end

Instance Attribute Details

#project_pathObject (readonly)

Returns the value of attribute project_path.



106
107
108
# File 'lib/lambit/commands/build.rb', line 106

def project_path
  @project_path
end

Instance Method Details

#subcommandObject



113
114
115
# File 'lib/lambit/commands/build.rb', line 113

def subcommand
  @subcommand = "cp -r #{project_path}/function/* #{workspace}"
end