Class: Lambit::Commands::Build::PackageSourceCommand
- Inherits:
-
Base
- Object
- Subcommands::Base
- Base
- Lambit::Commands::Build::PackageSourceCommand
- Defined in:
- lib/lambit/commands/build.rb
Instance Attribute Summary collapse
-
#project_path ⇒ Object
readonly
Returns the value of attribute project_path.
Attributes inherited from Base
Attributes inherited from Subcommands::Base
Instance Method Summary collapse
-
#initialize(opts, args) ⇒ PackageSourceCommand
constructor
A new instance of PackageSourceCommand.
- #subcommand ⇒ Object
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_path ⇒ Object (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
#subcommand ⇒ Object
113 114 115 |
# File 'lib/lambit/commands/build.rb', line 113 def subcommand @subcommand = "cp -r #{project_path}/function/* #{workspace}" end |