Class: Avm::EacRailsBase1::Instance

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

Constant Summary collapse

DEFAULT_RAILS_ENVIRONMENT =
'production'

Instance Method Summary collapse

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