Class: Avm::EacRailsBase1::Instance

Inherits:
Avm::EacWebappBase0::Instance show all
Defined in:
lib/avm/eac_rails_base1/instance.rb

Constant Summary collapse

DEFAULT_RAILS_ENVIRONMENT =
'production'

Constants inherited from Instances::Base

Instances::Base::ID_PATTERN

Instance Attribute Summary

Attributes inherited from Instances::Base

#application, #suffix

Attributes included from Instances::Base::Dockerizable

#docker_image_options

Instance Method Summary collapse

Methods inherited from Avm::EacWebappBase0::Instance

#data_dump, #data_dump_runner_class, #data_package, #database_unit, #run_subcommand, #stereotype_name

Methods included from Postgresql::InstanceWith

#pg

Methods inherited from Instances::Base

by_id, #host_env_uncached, #id, #initialize, #to_s

Methods included from Instances::Entries

#entry, #full_entry_path, #inherited_entry_value, #other_entry_value, #path_prefix, #read_entry, #read_entry_optional

Methods included from Instances::Base::Dockerizable

#docker_container_exist?, #docker_container_name

Constructor Details

This class inherits a constructor from Avm::Instances::Base

Instance Method Details

#bundle(*args) ⇒ Object



11
12
13
# File 'lib/avm/eac_rails_base1/instance.rb', line 11

def bundle(*args)
  the_gem.bundle(*args).chdir_root.envvar('RAILS_ENV', DEFAULT_RAILS_ENVIRONMENT)
end

#rake(*args) ⇒ Object



15
16
17
# File 'lib/avm/eac_rails_base1/instance.rb', line 15

def rake(*args)
  bundle('exec', 'rake', *args)
end

#the_gemObject



19
20
21
# File 'lib/avm/eac_rails_base1/instance.rb', line 19

def the_gem
  @the_gem ||= ::EacRubyGemsUtils::Gem.new(::File.join(read_entry('fs_path')), host_env)
end