Class: Avm::EacRubyBase0::SourceGenerators::Base

Inherits:
Avm::EacRubyBase1::SourceGenerators::Base
  • Object
show all
Defined in:
lib/avm/eac_ruby_base0/source_generators/base.rb,
lib/avm/eac_ruby_base0/source_generators/base/runner.rb,
lib/avm/eac_ruby_base0/source_generators/base/executable.rb,
lib/avm/eac_ruby_base0/source_generators/base/application.rb

Defined Under Namespace

Modules: Application, Executable, Runner

Constant Summary collapse

COMMON_DEPENDENCIES =
%w[eac_ruby_base0].freeze
EXECUTABLES_DIRECTORY =
'exe'
GEMSPEC_EXTRA_LINES =
[
  "s.bindir = '#{EXECUTABLES_DIRECTORY}'",
  "s.executables = s.files.grep(%r{^#{EXECUTABLES_DIRECTORY}/}) { |f| File.basename(f) }"
].freeze
GEMSPEC_FILES_DIRECTORY_PATHS =
[EXECUTABLES_DIRECTORY].freeze
GEMSPEC_FILES_FILE_PATHS =
%w[Gemfile Gemfile.lock].freeze
JOBS =
::Avm::EacRubyBase1::SourceGenerators::Base::JOBS + %w[application executable runner]
OPTION_EXECUTABLE_NAME =
'executable-name'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.common_dependency_gemsArray<String>

Returns:

  • (Array<String>)


25
26
27
# File 'lib/avm/eac_ruby_base0/source_generators/base.rb', line 25

def common_dependency_gems
  super + COMMON_DEPENDENCIES
end

Instance Method Details

#gemspec_extra_linesArray<String>

Returns:

  • (Array<String>)


31
32
33
# File 'lib/avm/eac_ruby_base0/source_generators/base.rb', line 31

def gemspec_extra_lines
  super + GEMSPEC_EXTRA_LINES
end

#gemspec_files_directory_pathsArray<String>

Returns:

  • (Array<String>)


36
37
38
# File 'lib/avm/eac_ruby_base0/source_generators/base.rb', line 36

def gemspec_files_directory_paths
  super + GEMSPEC_FILES_DIRECTORY_PATHS
end

#gemspec_files_file_pathsArray<String>

Returns:

  • (Array<String>)


41
42
43
# File 'lib/avm/eac_ruby_base0/source_generators/base.rb', line 41

def gemspec_files_file_paths
  super + GEMSPEC_FILES_FILE_PATHS
end