Class: Avm::Stereotypes::EacRailsBase0::Instance
- Inherits:
-
Avm::Stereotypes::EacWebappBase0::Instance
- Object
- Instances::Base
- Avm::Stereotypes::EacWebappBase0::Instance
- Avm::Stereotypes::EacRailsBase0::Instance
- Defined in:
- lib/avm/stereotypes/eac_rails_base0/instance.rb
Constant Summary collapse
- FILES_UNITS =
{ uploads: 'public/uploads' }.freeze
Constants inherited from Instances::Base
Instance Attribute Summary
Attributes inherited from Instances::Base
Instance Method Summary collapse
Methods inherited from Avm::Stereotypes::EacWebappBase0::Instance
#data_dump, #data_dump_runner_class, #data_package, #database_unit, #run_subcommand, #stereotype_name
Methods included from Postgresql::InstanceWith
Methods inherited from Instances::Base
by_id, #host_env_uncached, #id, #initialize, #to_s
Methods included from Instances::Entries
#full_entry_path, #inherited_entry_value, #other_entry_value, #path_prefix, #read_entry, #read_entry_optional
Constructor Details
This class inherits a constructor from Avm::Instances::Base
Instance Method Details
#bundle(*args) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/avm/stereotypes/eac_rails_base0/instance.rb', line 11 def bundle(*args) host_env.command('bundle', *args) .envvar('BUNDLE_GEMFILE', ::File.join(read_entry('fs_path'), 'Gemfile')) .envvar('RAILS_ENV', 'production') .chdir(read_entry('fs_path')) end |
#rake(*args) ⇒ Object
18 19 20 |
# File 'lib/avm/stereotypes/eac_rails_base0/instance.rb', line 18 def rake(*args) bundle('exec', 'rake', *args) end |