Class: Avm::Tools::AppSrc

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/app_src.rb

Instance Method Summary collapse

Instance Method Details

#localeObject



23
24
25
# File 'lib/avm/tools/app_src.rb', line 23

def locale
  configuration.if_present(&:locale) || ::I18n.default_locale
end

#realAvm::Launcher::Paths::Real

Backward compatibility with [Avm::Launcher::Paths::Logical].

Returns:

  • (Avm::Launcher::Paths::Real)

    .



29
30
31
# File 'lib/avm/tools/app_src.rb', line 29

def real
  ::Avm::Launcher::Paths::Real.new(path.to_path)
end

#run_job(job, job_args = []) ⇒ Object



33
34
35
# File 'lib/avm/tools/app_src.rb', line 33

def run_job(job, job_args = [])
  stereotypes_jobs(job, job_args).each(&:run)
end