eac_tools 0.47.1 → 0.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +45 -44
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
- data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +2 -2
- data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +1 -1
- data/sub/avm-eac_python_base0/avm-eac_python_base0.gemspec +2 -2
- data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/file_formats/base.rb +1 -1
- data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +3 -3
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +1 -0
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +28 -0
- 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_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +19 -0
- 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_rails_base1/lib/avm/eac_rails_base1/{runner.rb → instances/runners.rb} +4 -3
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +1 -1
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +6 -6
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +4 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +27 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +4 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +19 -0
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +3 -3
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
- metadata +44 -55
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners/base.rb +0 -13
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/runners.rb +0 -11
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners/base.rb +0 -26
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/runners.rb +0 -11
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb +0 -26
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb +0 -26
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb +0 -43
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb +0 -26
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb +0 -18
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb +0 -32
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb +0 -46
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb +0 -17
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners/base.rb +0 -25
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/runners.rb +0 -11
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner.rb +0 -12
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb +0 -14
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb +0 -11
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/runner_with/bundle'
|
4
|
-
require 'avm/instances/entry_keys'
|
5
|
-
require 'eac_cli/core_ext'
|
6
|
-
require 'shellwords'
|
7
|
-
|
8
|
-
module Avm
|
9
|
-
module EacRailsBase1
|
10
|
-
class Runner < ::Avm::EacWebappBase0::Runner
|
11
|
-
class RailsServer
|
12
|
-
DEFAULT_RAILS_ENVIRONMENT = 'development'
|
13
|
-
runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
|
14
|
-
desc 'Run the embbeded Rails web server.'
|
15
|
-
end
|
16
|
-
|
17
|
-
def run
|
18
|
-
infov 'Environment', rails_environment
|
19
|
-
infov 'Bundle args', ::Shellwords.join(bundle_args)
|
20
|
-
infov 'Result', bundle_command.system
|
21
|
-
end
|
22
|
-
|
23
|
-
protected
|
24
|
-
|
25
|
-
def bundle_args
|
26
|
-
['exec', 'rails', 'server', '--port',
|
27
|
-
runner_context.call(:instance).read_entry(::Avm::Instances::EntryKeys::WEB_PORT)]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_rails_base1/instances/systemd_unit'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacRailsBase1
|
8
|
-
class Runner < ::Avm::EacWebappBase0::Runner
|
9
|
-
class TasksScheduler
|
10
|
-
class SystemdUnit
|
11
|
-
DEFAULT_RESTART = 'on-failure'
|
12
|
-
|
13
|
-
runner_with :help do
|
14
|
-
desc 'Configure Systemd unit for instace\'s tasks scheduler daemon (Reference: ' \
|
15
|
-
'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
|
16
|
-
bool_opt '-e', '--exec-run', 'Run daemon with "run" instead of "start"/"stop".'
|
17
|
-
arg_opt '-r', '--restart', 'Value for systemd.service, Restart=.',
|
18
|
-
default: DEFAULT_RESTART
|
19
|
-
end
|
20
|
-
|
21
|
-
delegate :restart, to: :parsed
|
22
|
-
|
23
|
-
def run
|
24
|
-
if result.error?
|
25
|
-
fatal_error result.to_s
|
26
|
-
else
|
27
|
-
infov 'Result', result.label
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def systemd_unit_uncached
|
34
|
-
::Avm::EacRailsBase1::Instances::SystemdUnit.new(runner_context.call(:instance),
|
35
|
-
restart: parsed.restart,
|
36
|
-
exec_run: parsed.exec_run?)
|
37
|
-
end
|
38
|
-
|
39
|
-
def result_uncached
|
40
|
-
systemd_unit.run
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module EacRailsBase1
|
7
|
-
class Runner < ::Avm::EacWebappBase0::Runner
|
8
|
-
class TasksScheduler
|
9
|
-
require_sub __FILE__
|
10
|
-
|
11
|
-
runner_with :help, :subcommands do
|
12
|
-
subcommands
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_redmine_base0/instances/base'
|
4
|
-
require 'avm/eac_redmine_base0/instances/deploy'
|
5
|
-
require 'avm/eac_redmine_base0/instances/apache_host'
|
6
|
-
require 'avm/eac_rails_base1/runner'
|
7
|
-
require 'eac_ruby_utils/core_ext'
|
8
|
-
|
9
|
-
module Avm
|
10
|
-
module EacRedmineBase0
|
11
|
-
module Runners
|
12
|
-
class Base < ::Avm::EacRailsBase1::Runner
|
13
|
-
require_sub __FILE__
|
14
|
-
|
15
|
-
STEREOTYPE_NAME = 'EacRedmineBase0'
|
16
|
-
|
17
|
-
class << self
|
18
|
-
def stereotype_name
|
19
|
-
STEREOTYPE_NAME
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_webapp_base0/runner'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacWordpressBase0
|
8
|
-
module Runners
|
9
|
-
class Base < ::Avm::EacWebappBase0::Runner
|
10
|
-
require_sub __FILE__
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|