avm-tools 0.46.0 → 0.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/tools/runner/eac_redmine_base0/runner.rb +43 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea5ddc3be43fde36ddae9da599013e75bb0eeeab41960f449bc98665479df692
|
4
|
+
data.tar.gz: d7521c7d54d213a99a8786672c2c5252ed9ab0055f2704111b9c9995ebadbc7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8446d752260be60ebffdda5226ec06fc0c01c4bdd07f5696188cbf0a062b00632544e26283e73cd499d37a3f6e9f701fe687dfe2a07fad674cb07fdd12f19f50
|
7
|
+
data.tar.gz: 5264f44597c53a062537a84ebf5ee740ec5eb62aeabc1c3171601f513bc8494055ad9ac62780b6dec5c7b50006bee64039455fd308a07d882b114ade74d25d7a
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
+
require 'eac_cli/default_runner'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Tools
|
8
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
9
|
+
class EacRedmineBase0 < ::EacRubyUtils::Console::DocoptRunner
|
10
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
11
|
+
include ::EacCli::DefaultRunner
|
12
|
+
|
13
|
+
runner_definition do
|
14
|
+
desc 'Runs a Ruby code with "rails runner".'
|
15
|
+
arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate' \
|
16
|
+
" under (test/development/production).\n" \
|
17
|
+
'Default: development'
|
18
|
+
pos_arg 'code'
|
19
|
+
end
|
20
|
+
|
21
|
+
def run
|
22
|
+
infov 'Runner arguments', runner_args
|
23
|
+
infov 'Environment', context(:instance).host_env
|
24
|
+
runner_command.system!
|
25
|
+
end
|
26
|
+
|
27
|
+
def runner_command_uncached
|
28
|
+
context(:instance).bundle(*bundle_args)
|
29
|
+
end
|
30
|
+
|
31
|
+
def bundle_args
|
32
|
+
%w[exec rails runner] + runner_args
|
33
|
+
end
|
34
|
+
|
35
|
+
def runner_args
|
36
|
+
options.fetch('--environment').if_present([]) { |v| ['--environment', v] } +
|
37
|
+
[options.fetch('<code>')]
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
data/lib/avm/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.47.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -92,6 +92,20 @@ dependencies:
|
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 0.1.1
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: eac_cli
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0.3'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0.3'
|
95
109
|
- !ruby/object:Gem::Dependency
|
96
110
|
name: eac_ruby_gems_utils
|
97
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,6 +360,7 @@ files:
|
|
346
360
|
- lib/avm/tools/runner/eac_redmine_base0/data/dump.rb
|
347
361
|
- lib/avm/tools/runner/eac_redmine_base0/deploy.rb
|
348
362
|
- lib/avm/tools/runner/eac_redmine_base0/docker.rb
|
363
|
+
- lib/avm/tools/runner/eac_redmine_base0/runner.rb
|
349
364
|
- lib/avm/tools/runner/eac_wordpress_base0.rb
|
350
365
|
- lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb
|
351
366
|
- lib/avm/tools/runner/eac_wordpress_base0/data.rb
|