Class: Avm::EacRubyBase1::Sources::Base::BundleCommand
- Inherits:
-
EacRubyUtils::Ruby::Command
- Object
- EacRubyUtils::Ruby::Command
- Avm::EacRubyBase1::Sources::Base::BundleCommand
- Defined in:
- lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
Constant Summary collapse
- GEMFILE_PATH_ENVVAR =
'BUNDLE_GEMFILE'
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#chdir_root ⇒ Object
Changes current directory to the source’s directory.
- #envvar_gemfile ⇒ Object
-
#initialize(source, command_args, extra_options = {}) ⇒ BundleCommand
constructor
A new instance of BundleCommand.
Constructor Details
#initialize(source, command_args, extra_options = {}) ⇒ BundleCommand
Returns a new instance of BundleCommand.
16 17 18 19 |
# File 'lib/avm/eac_ruby_base1/sources/base/bundle_command.rb', line 16 def initialize(source, command_args, = {}) @source = source super(command_args, .merge(host_env: source.env)) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
14 15 16 |
# File 'lib/avm/eac_ruby_base1/sources/base/bundle_command.rb', line 14 def source @source end |
Instance Method Details
#chdir_root ⇒ Object
Changes current directory to the source’s directory.
22 23 24 |
# File 'lib/avm/eac_ruby_base1/sources/base/bundle_command.rb', line 22 def chdir_root chdir(source.path) end |
#envvar_gemfile ⇒ Object
26 27 28 |
# File 'lib/avm/eac_ruby_base1/sources/base/bundle_command.rb', line 26 def envvar_gemfile envvar(GEMFILE_PATH_ENVVAR, source.gemfile_path.to_path) end |