eac_tools 0.96.1 → 0.96.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/lib/eac_tools/version.rb +1 -1
- data/sub/{avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec → avm-eac_rails_base1/avm-eac_rails_base1.gemspec} +6 -6
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb +16 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb +18 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb +21 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +50 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +23 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb +39 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +27 -0
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb} +3 -3
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances}/runners/bundle.rb +7 -8
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +28 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +45 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +27 -0
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb} +4 -4
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +34 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +48 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +19 -0
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources → avm-eac_rails_base1/lib/avm/eac_rails_base1/instances}/runners.rb +2 -2
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb +72 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb +31 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb +59 -0
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/instances.rb +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +27 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +47 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +43 -0
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_rails_base1/lib/avm/eac_rails_base1}/version.rb +2 -2
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb → avm-eac_rails_base1/lib/avm/eac_rails_base1.rb} +1 -1
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf +5 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service +12 -0
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh +6 -0
- metadata +41 -152
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +0 -56
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +0 -19
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +0 -34
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +0 -25
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +0 -44
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +0 -17
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +0 -77
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +0 -33
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +0 -19
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +0 -16
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +0 -26
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +0 -25
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +0 -47
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +0 -22
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +0 -19
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +0 -126
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +0 -63
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +0 -28
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +0 -130
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +0 -37
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +0 -43
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +0 -16
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +0 -22
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +0 -17
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +0 -42
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +0 -55
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +0 -71
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +0 -25
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +0 -59
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/remote.rb +0 -36
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +0 -45
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +0 -77
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +0 -30
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +0 -18
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +0 -63
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +0 -27
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +0 -35
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +0 -62
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +0 -112
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb +0 -11
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +0 -39
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +0 -68
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +0 -42
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +0 -28
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +0 -73
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +0 -43
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +0 -25
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -19
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -61
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +0 -23
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb +0 -53
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb +0 -69
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +0 -55
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +0 -58
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +0 -60
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +0 -89
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +0 -76
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +0 -68
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +0 -59
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +0 -29
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +0 -52
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +0 -29
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +0 -90
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +0 -25
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb +0 -13
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +0 -59
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +0 -64
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb +0 -11
- data/sub/avm-eac_ruby_base1/locale/en.yml +0 -9
- data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +0 -9
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +0 -192
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +0 -300
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +0 -245
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +0 -355
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +0 -305
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +0 -6
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +0 -3
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +0 -6
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +0 -46
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +0 -59
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +0 -29
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +0 -23
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +0 -23
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec.rb +0 -37
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.source.yaml +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.target.txt +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/the_gem.gemspec +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +0 -36
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +0 -27
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +0 -19
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +0 -2
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +0 -19
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb +0 -9
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +0 -2
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +0 -19
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb +0 -3
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +0 -30
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +0 -19
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +0 -14
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +0 -17
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +0 -16
- data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +0 -3
- data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +0 -4
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +0 -19
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +0 -7
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +0 -3
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +0 -4
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +0 -5
- /data/sub/{avm-eac_ruby_base1 → avm-eac_rails_base1}/Gemfile +0 -0
- /data/sub/{avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem → avm-eac_rails_base1}/spec/rubocop_spec.rb +0 -0
- /data/sub/{avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem → avm-eac_rails_base1}/spec/spec_helper.rb +0 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
class SystemdUnit
|
9
|
+
module Service
|
10
|
+
def service_content
|
11
|
+
template.child('tasks_scheduler.service').apply(variables_source)
|
12
|
+
end
|
13
|
+
|
14
|
+
def service_exec_lines
|
15
|
+
service_exec_operations
|
16
|
+
.map { |k, v| "#{k}=#{tasks_scheduler_command_path} #{v}" }
|
17
|
+
.join("\n")
|
18
|
+
end
|
19
|
+
|
20
|
+
def service_path
|
21
|
+
::Pathname.new('/etc/systemd/system').join(unit_name)
|
22
|
+
end
|
23
|
+
|
24
|
+
def service_link_path
|
25
|
+
::Pathname.new('/etc/systemd/system/multi-user.target.wants').join(unit_name)
|
26
|
+
end
|
27
|
+
|
28
|
+
def verify_service
|
29
|
+
sudo_system!('systemd-analyze', 'verify', service_path)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def enable_service
|
35
|
+
systemctl('enable', unit_name)
|
36
|
+
end
|
37
|
+
|
38
|
+
def link_service
|
39
|
+
sudo_execute!('rm', '-f', service_link_path)
|
40
|
+
sudo_execute!('ln', '-s', service_path, service_link_path)
|
41
|
+
end
|
42
|
+
|
43
|
+
def reload_systemd
|
44
|
+
systemctl('daemon-reload')
|
45
|
+
end
|
46
|
+
|
47
|
+
# @return [Hash<String, String>]
|
48
|
+
def service_exec_operations
|
49
|
+
if exec_run?
|
50
|
+
{ 'ExecStart' => 'run' }
|
51
|
+
else
|
52
|
+
{ 'ExecStart' => 'start', 'ExecStop' => 'stop' }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def start_service
|
57
|
+
systemctl('start', unit_name)
|
58
|
+
end
|
59
|
+
|
60
|
+
def systemctl(*args)
|
61
|
+
sudo_system!('systemctl', *args)
|
62
|
+
end
|
63
|
+
|
64
|
+
def write_service
|
65
|
+
infom 'Writing service\'s unit file...'
|
66
|
+
platform_instance.file_sudo_write(service_path, service_content)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRailsBase1
|
7
|
+
module Instances
|
8
|
+
class SystemdUnit
|
9
|
+
module TasksSchedulerCommand
|
10
|
+
def tasks_scheduler_command_content
|
11
|
+
template.child('tasks_scheduler_command.sh').apply(variables_source)
|
12
|
+
end
|
13
|
+
|
14
|
+
def tasks_scheduler_command_path
|
15
|
+
"/opt/aux/#{instance.id}/tasks_scheduler.sh"
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def write_tasks_scheduler_command
|
21
|
+
infom 'Writing tasks scheduler\'s command...'
|
22
|
+
sudo_execute!('mkdir', '-p', ::File.dirname(tasks_scheduler_command_path))
|
23
|
+
platform_instance.file_sudo_write(tasks_scheduler_command_path,
|
24
|
+
tasks_scheduler_command_content)
|
25
|
+
sudo_execute!('chmod', '+x', tasks_scheduler_command_path)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/entries/jobs/base'
|
4
|
+
require 'avm/eac_ubuntu_base0/apache'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacRailsBase1
|
9
|
+
module Instances
|
10
|
+
class SystemdUnit
|
11
|
+
JOBS = %w[write_tasks_scheduler_command write_service link_service verify_service
|
12
|
+
reload_systemd enable_service start_service].freeze
|
13
|
+
|
14
|
+
include ::Avm::Entries::Jobs::Base
|
15
|
+
require_sub __FILE__, include_modules: true
|
16
|
+
delegate :platform_instance, to: :instance
|
17
|
+
|
18
|
+
enable_listable
|
19
|
+
lists.add_symbol :option, :exec_run, :restart
|
20
|
+
|
21
|
+
def description
|
22
|
+
"#{instance.id} Tasks Scheduler"
|
23
|
+
end
|
24
|
+
|
25
|
+
def exec_run?
|
26
|
+
options[OPTION_EXEC_RUN]
|
27
|
+
end
|
28
|
+
|
29
|
+
def option_list
|
30
|
+
self.class.lists.option
|
31
|
+
end
|
32
|
+
|
33
|
+
def restart
|
34
|
+
options[OPTION_RESTART]
|
35
|
+
end
|
36
|
+
|
37
|
+
def unit_name
|
38
|
+
"#{instance.id}_tasks_scheduler.service"
|
39
|
+
end
|
40
|
+
|
41
|
+
def user
|
42
|
+
instance.install_username
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def sudo_execute!(*args)
|
48
|
+
platform_instance.host_env.command(['sudo'] + args).execute!
|
49
|
+
end
|
50
|
+
|
51
|
+
def sudo_system!(*args)
|
52
|
+
command_args = ['sudo'] + args
|
53
|
+
infom "Running \"#{::Shellwords.join(command_args)}\"..."
|
54
|
+
platform_instance.host_env.command(command_args).system!
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/base'
|
4
|
+
require 'avm/eac_rails_base1/runner_with/rails_environment'
|
5
|
+
require 'eac_cli/runner'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacRailsBase1
|
9
|
+
module RunnerWith
|
10
|
+
module Bundle
|
11
|
+
common_concern do
|
12
|
+
include ::Avm::EacRailsBase1::RunnerWith::RailsEnvironment
|
13
|
+
end
|
14
|
+
|
15
|
+
def bundle_command
|
16
|
+
rails_instance.bundle(*bundle_args).envvar('RAILS_ENV', rails_environment)
|
17
|
+
end
|
18
|
+
|
19
|
+
def bundle_run
|
20
|
+
infov 'Bundle arguments', ::Shellwords.join(bundle_args)
|
21
|
+
infov 'Rails environment', rails_environment
|
22
|
+
bundle_command.system!
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/base'
|
4
|
+
require 'eac_cli/runner'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module RunnerWith
|
9
|
+
module RailsEnvironment
|
10
|
+
DEFAULT_RAILS_ENVIRONMENT_CONSTANT = 'DEFAULT_RAILS_ENVIRONMENT'
|
11
|
+
|
12
|
+
common_concern do
|
13
|
+
include ::EacCli::Runner
|
14
|
+
|
15
|
+
runner_definition do
|
16
|
+
arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate ' \
|
17
|
+
'(test/development/production). Default: "development".'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
def default_rails_environment
|
23
|
+
const_get(DEFAULT_RAILS_ENVIRONMENT_CONSTANT)
|
24
|
+
rescue ::NameError
|
25
|
+
::Avm::EacRailsBase1::Instances::Base::DEFAULT_RAILS_ENVIRONMENT
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def default_rails_environment
|
30
|
+
self.class.default_rails_environment
|
31
|
+
end
|
32
|
+
|
33
|
+
def rails_environment
|
34
|
+
parsed.environment.presence || default_rails_environment
|
35
|
+
end
|
36
|
+
|
37
|
+
def rails_instance
|
38
|
+
if respond_to?(:runner_context)
|
39
|
+
runner_context.call(:instance)
|
40
|
+
else
|
41
|
+
context(:instance)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_ruby_base1/sources/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Sources
|
9
|
+
class Base < ::Avm::EacRubyBase1::Sources::Base
|
10
|
+
CONFIG_RU_SUBPATH = 'config.ru'
|
11
|
+
EAC_RAILS_BASE1_TEST_NAME = 'eac_rails_base1'
|
12
|
+
RAKE_TEST_COMMAND_DEFAULT_TASK_NAME = 'test'
|
13
|
+
SUBS_PATHS_DEFAULT = ['sub/*/*'].freeze
|
14
|
+
|
15
|
+
def config_ru_path
|
16
|
+
path.join(CONFIG_RU_SUBPATH)
|
17
|
+
end
|
18
|
+
|
19
|
+
def default_test_commands
|
20
|
+
{
|
21
|
+
EAC_RAILS_BASE1_TEST_NAME => eac_rails_base1_test_command
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
def eac_rails_base1_test_command
|
26
|
+
rake_test_command
|
27
|
+
end
|
28
|
+
|
29
|
+
def rake_test_command(task_name = RAKE_TEST_COMMAND_DEFAULT_TASK_NAME)
|
30
|
+
rake(task_name).chdir_root.envvar('RAILS_ENV', 'test')
|
31
|
+
end
|
32
|
+
|
33
|
+
def subs_paths_default
|
34
|
+
SUBS_PATHS_DEFAULT
|
35
|
+
end
|
36
|
+
|
37
|
+
def valid?
|
38
|
+
super && config_ru_path.exist?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.96.
|
4
|
+
version: 0.96.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -181,6 +181,9 @@ dependencies:
|
|
181
181
|
- - "~>"
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0.10'
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.10.1
|
184
187
|
type: :runtime
|
185
188
|
prerelease: false
|
186
189
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -188,6 +191,9 @@ dependencies:
|
|
188
191
|
- - "~>"
|
189
192
|
- !ruby/object:Gem::Version
|
190
193
|
version: '0.10'
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 0.10.1
|
191
197
|
- !ruby/object:Gem::Dependency
|
192
198
|
name: avm-eac_redmine_base0
|
193
199
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,156 +374,39 @@ files:
|
|
368
374
|
- Gemfile.lock
|
369
375
|
- lib/eac_tools.rb
|
370
376
|
- lib/eac_tools/version.rb
|
371
|
-
- sub/avm-
|
372
|
-
- sub/avm-
|
373
|
-
- sub/avm-
|
374
|
-
- sub/avm-
|
375
|
-
- sub/avm-
|
376
|
-
- sub/avm-
|
377
|
-
- sub/avm-
|
378
|
-
- sub/avm-
|
379
|
-
- sub/avm-
|
380
|
-
- sub/avm-
|
381
|
-
- sub/avm-
|
382
|
-
- sub/avm-
|
383
|
-
- sub/avm-
|
384
|
-
- sub/avm-
|
385
|
-
- sub/avm-
|
386
|
-
- sub/avm-
|
387
|
-
- sub/avm-
|
388
|
-
- sub/avm-
|
389
|
-
- sub/avm-
|
390
|
-
- sub/avm-
|
391
|
-
- sub/avm-
|
392
|
-
- sub/avm-
|
393
|
-
- sub/avm-
|
394
|
-
- sub/avm-
|
395
|
-
- sub/avm-
|
396
|
-
- sub/avm-
|
397
|
-
- sub/avm-
|
398
|
-
- sub/avm-
|
399
|
-
- sub/avm-
|
400
|
-
- sub/avm-
|
401
|
-
- sub/avm-
|
402
|
-
- sub/avm-
|
403
|
-
- sub/avm-
|
404
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb
|
405
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
|
406
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb
|
407
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb
|
408
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb
|
409
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb
|
410
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb
|
411
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb
|
412
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/remote.rb
|
413
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb
|
414
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb
|
415
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb
|
416
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb
|
417
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb
|
418
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb
|
419
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb
|
420
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb
|
421
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb
|
422
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb
|
423
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb
|
424
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb
|
425
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb
|
426
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
|
427
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
|
428
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
429
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb
|
430
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb
|
431
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
432
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb
|
433
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
|
434
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
|
435
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
|
436
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb
|
437
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb
|
438
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb
|
439
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
|
440
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb
|
441
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
|
442
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb
|
443
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb
|
444
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb
|
445
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb
|
446
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb
|
447
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb
|
448
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb
|
449
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb
|
450
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb
|
451
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb
|
452
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
|
453
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb
|
454
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb
|
455
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb
|
456
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb
|
457
|
-
- sub/avm-eac_ruby_base1/locale/en.yml
|
458
|
-
- sub/avm-eac_ruby_base1/locale/pt-BR.yml
|
459
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb
|
460
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out
|
461
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml
|
462
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out
|
463
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml
|
464
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out
|
465
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml
|
466
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb
|
467
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source
|
468
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target
|
469
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source
|
470
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target
|
471
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb
|
472
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb
|
473
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
|
474
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb
|
475
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb
|
476
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec.rb
|
477
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.source.yaml
|
478
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.target.txt
|
479
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/the_gem.gemspec
|
480
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb
|
481
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb
|
482
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb
|
483
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile
|
484
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock
|
485
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb
|
486
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb
|
487
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb
|
488
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile
|
489
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock
|
490
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore
|
491
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec
|
492
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb
|
493
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb
|
494
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb
|
495
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb
|
496
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile
|
497
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock
|
498
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore
|
499
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb
|
500
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb
|
501
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec
|
502
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb
|
503
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb
|
504
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
|
505
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile
|
506
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock
|
507
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile
|
508
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner
|
509
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb
|
510
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb
|
511
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec
|
512
|
-
- sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb
|
513
|
-
- sub/avm-eac_ruby_base1/spec/rubocop_spec.rb
|
514
|
-
- sub/avm-eac_ruby_base1/spec/spec_helper.rb
|
515
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template
|
516
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template
|
517
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile
|
518
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb
|
519
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb
|
520
|
-
- sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template
|
377
|
+
- sub/avm-eac_rails_base1/Gemfile
|
378
|
+
- sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec
|
379
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1.rb
|
380
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances.rb
|
381
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb
|
382
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb
|
383
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb
|
384
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
|
385
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb
|
386
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb
|
387
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb
|
388
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb
|
389
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners.rb
|
390
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb
|
391
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
|
392
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb
|
393
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb
|
394
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb
|
395
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb
|
396
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb
|
397
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb
|
398
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb
|
399
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb
|
400
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb
|
401
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb
|
402
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb
|
403
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb
|
404
|
+
- sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb
|
405
|
+
- sub/avm-eac_rails_base1/spec/rubocop_spec.rb
|
406
|
+
- sub/avm-eac_rails_base1/spec/spec_helper.rb
|
407
|
+
- sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf
|
408
|
+
- sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service
|
409
|
+
- sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh
|
521
410
|
homepage:
|
522
411
|
licenses: []
|
523
412
|
metadata: {}
|
data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module EacRubyBase1
|
7
|
-
module Bundler
|
8
|
-
class Gemfile
|
9
|
-
class AddOrReplaceGemLine
|
10
|
-
enable_method_class
|
11
|
-
common_constructor :sender, :gem_name, :gem_specs
|
12
|
-
delegate :lines, to: :sender
|
13
|
-
|
14
|
-
def existing_gem_line_index
|
15
|
-
lines.index { |line| line.start_with?(gem_line_prefix) }
|
16
|
-
end
|
17
|
-
|
18
|
-
def result
|
19
|
-
if existing_gem_line_index.present?
|
20
|
-
replace_line
|
21
|
-
else
|
22
|
-
add_line
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def add_line
|
27
|
-
lines.insert(add_line_index, new_gem_line)
|
28
|
-
end
|
29
|
-
|
30
|
-
def add_line_index
|
31
|
-
(gems_lines_start_index..(lines.count - 1)).each do |e|
|
32
|
-
return e if new_gem_line < lines[e]
|
33
|
-
end
|
34
|
-
lines.count
|
35
|
-
end
|
36
|
-
|
37
|
-
def gems_lines_start_index
|
38
|
-
lines.index { |line| line.start_with?('gem ') } || lines.count
|
39
|
-
end
|
40
|
-
|
41
|
-
def new_gem_line
|
42
|
-
([gem_line_prefix] + gem_specs).join(', ')
|
43
|
-
end
|
44
|
-
|
45
|
-
def gem_line_prefix
|
46
|
-
"gem '#{gem_name}'"
|
47
|
-
end
|
48
|
-
|
49
|
-
def replace_line
|
50
|
-
lines[existing_gem_line_index] = new_gem_line
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module EacRubyBase1
|
7
|
-
module Bundler
|
8
|
-
class Gemfile
|
9
|
-
class Dependency
|
10
|
-
common_constructor :gemfile, :gem_name
|
11
|
-
|
12
|
-
def version_specs=(version_specs)
|
13
|
-
gemfile.add_or_replace_gem_line(gem_name, version_specs)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|