eac_tools 0.47.0 → 0.47.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -13
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +2 -2
  5. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +8 -2
  6. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb +5 -3
  7. data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +1 -1
  8. data/sub/avm-tools/avm-tools.gemspec +2 -2
  9. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  10. data/sub/eac_fs/lib/eac_fs/storage_tree.rb +19 -0
  11. data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
  12. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/{command → base_command}/append_command_options.rb +1 -1
  13. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/{command → base_command}/concat.rb +5 -12
  14. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/{command → base_command}/debugging.rb +1 -1
  15. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/{command → base_command}/execution.rb +1 -1
  16. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/extra_options.rb +28 -0
  17. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command.rb +45 -0
  18. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +0 -10
  19. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +3 -15
  20. data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/composite_command.rb +33 -0
  21. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  22. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command_spec.rb +32 -25
  23. metadata +35 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3418d6903a368e33472395b53a332d45ba663fef893c5e657f68ccb5bfc22c17
4
- data.tar.gz: 53b2d9b4c6a88ae9371176752c14bcaa623537f685f9400080c61ec274cee36e
3
+ metadata.gz: 24f75dde80d4c4479e5f7bdd1203f9aa4fdd06dda99579b0c5212e24a9959c87
4
+ data.tar.gz: a3ea613d10868c65c5801a1876f043e7bc0512459d458f0f278c425ce13974be
5
5
  SHA512:
6
- metadata.gz: 37e4b8af6160ac8056ad0c724639b304260ce2c4b47fb405488a8fa529d01d3535264b0b28a06bff17f4adfd62eb47253f4d81c20e52e77637100ff05937aa05
7
- data.tar.gz: 1c72ca7d308189e28abc9bd8b1f01ff7d02a74841bffe80374f43fd9da5be792c6c90fce48ceef451bff95f56117fe95f5dde5d3869393696d2d8ae4dece2edf
6
+ metadata.gz: ca9448f7b5e0b23dc4df3bbd8efdba689a2741c672720971728c897e4c84296fb1a63d8b1b81f8dc629dc61f977e18333bca4d45f89cea40b08dc6c9d153fcb5
7
+ data.tar.gz: 304b367004e5d00ffb9efeb8a4fcf1151a6976dc525d6c1271115e539fa9b2eb91b1ba4b5c302e9660ae7e60ba3a47bd19fcfe51eca2fcf117ab370973705584
data/Gemfile.lock CHANGED
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.47.0)
5
- avm (~> 0.58)
4
+ eac_tools (0.47.1)
5
+ avm (~> 0.57)
6
6
  avm-eac_asciidoctor_base0 (~> 0.12)
7
7
  avm-eac_generic_base0 (~> 0.8)
8
8
  avm-eac_latex_base0 (~> 0.3)
9
9
  avm-eac_php_base0 (~> 0.4)
10
+ avm-eac_postgresql_base0 (~> 0.2, >= 0.2.2)
10
11
  avm-eac_rails_base0 (~> 0.8, >= 0.8.1)
11
12
  avm-eac_rails_base1 (~> 0.7, >= 0.7.1)
12
13
  avm-eac_redmine_base0 (~> 0.17)
@@ -14,8 +15,8 @@ PATH
14
15
  avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
15
16
  avm-eac_webapp_base0 (~> 0.12, >= 0.12.3)
16
17
  avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
17
- avm-tools (~> 0.142, >= 0.142.6)
18
- eac_ruby_utils (~> 0.108)
18
+ avm-tools (~> 0.142, >= 0.142.7)
19
+ eac_ruby_utils (~> 0.109)
19
20
 
20
21
  PATH
21
22
  remote: sub/aranha-parsers
@@ -66,9 +67,9 @@ PATH
66
67
  PATH
67
68
  remote: sub/avm-eac_postgresql_base0
68
69
  specs:
69
- avm-eac_postgresql_base0 (0.2.1)
70
- avm (~> 0.56, >= 0.56.1)
71
- eac_ruby_utils (~> 0.107, >= 0.107.1)
70
+ avm-eac_postgresql_base0 (0.2.2)
71
+ avm (~> 0.57)
72
+ eac_ruby_utils (~> 0.108)
72
73
 
73
74
  PATH
74
75
  remote: sub/avm-eac_python_base0
@@ -163,13 +164,13 @@ PATH
163
164
  PATH
164
165
  remote: sub/avm-tools
165
166
  specs:
166
- avm-tools (0.142.6)
167
+ avm-tools (0.142.7)
167
168
  aranha-parsers (~> 0.14, >= 0.14.4)
168
- avm (~> 0.56)
169
+ avm (~> 0.57)
169
170
  avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
170
171
  avm-eac_ubuntu_base0 (~> 0.3)
171
172
  avm-files (~> 0.6)
172
- avm-git (~> 0.10)
173
+ avm-git (~> 0.10, >= 0.10.1)
173
174
  clipboard (~> 1.3, >= 1.3.6)
174
175
  curb (~> 0.9, >= 0.9.11)
175
176
  eac_git (~> 0.14)
@@ -219,7 +220,7 @@ PATH
219
220
  PATH
220
221
  remote: sub/eac_fs
221
222
  specs:
222
- eac_fs (0.15.0)
223
+ eac_fs (0.16.0)
223
224
  content-type (~> 0.0, >= 0.0.2)
224
225
  eac_ruby_utils (~> 0.107, >= 0.107.1)
225
226
  ruby-filemagic (~> 0.7, >= 0.7.3)
@@ -243,7 +244,7 @@ PATH
243
244
  PATH
244
245
  remote: sub/eac_ruby_utils
245
246
  specs:
246
- eac_ruby_utils (0.108.0)
247
+ eac_ruby_utils (0.109.0)
247
248
  activesupport (>= 4, < 7)
248
249
  addressable (~> 2.8, >= 2.8.1)
249
250
  bundler
@@ -411,4 +412,4 @@ DEPENDENCIES
411
412
  eac_tools!
412
413
 
413
414
  BUNDLED WITH
414
- 2.3.20
415
+ 2.3.26
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.47.0'
4
+ VERSION = '0.47.1'
5
5
  end
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.56', '>= 0.56.1'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.107', '>= 0.107.1'
15
+ s.add_dependency 'avm', '~> 0.57'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.108'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
19
19
  end
@@ -27,12 +27,18 @@ module Avm
27
27
  .envvar('PGPASSWORD', password)
28
28
  end
29
29
 
30
+ # @return [EacRubyUtils::Envs::Command]
30
31
  def dump_gzip_command
31
- dump_command.append(['@ESC_|', 'gzip', '-9', '-c'])
32
+ dump_command.pipe(env.command('gzip', '-9', '-c'))
33
+ end
34
+
35
+ # @return [String]
36
+ def password_command_argument
37
+ "@ESC_PGPASSWORD=#{password}"
32
38
  end
33
39
 
34
40
  def psql_command(database = true)
35
- env.command("@ESC_PGPASSWORD=#{password}", 'psql', *common_command_args(database))
41
+ env.command(password_command_argument, 'psql', *common_command_args(database))
36
42
  end
37
43
 
38
44
  def psql_command_command(sql, database = true)
@@ -8,9 +8,11 @@ module Avm
8
8
  module InstanceWith
9
9
  def pg
10
10
  @pg ||= ::Avm::EacPostgresqlBase0::Instance.new(
11
- host_env, user: read_entry(::Avm::Instances::EntryKeys::DATABASE_USERNAME),
12
- password: read_entry(::Avm::Instances::EntryKeys::DATABASE_PASSWORD),
13
- name: read_entry(::Avm::Instances::EntryKeys::DATABASE_NAME)
11
+ host_env, host: database_hostname,
12
+ port: database_port,
13
+ user: database_username,
14
+ password: database_password,
15
+ name: database_name
14
16
  )
15
17
  end
16
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacPostgresqlBase0
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -15,11 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
16
 
17
17
  s.add_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.4'
18
- s.add_dependency 'avm', '~> 0.56'
18
+ s.add_dependency 'avm', '~> 0.57'
19
19
  s.add_dependency 'avm-eac_ruby_base1', '~> 0.27', '>= 0.27.1'
20
20
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
21
21
  s.add_dependency 'avm-files', '~> 0.6'
22
- s.add_dependency 'avm-git', '~> 0.10'
22
+ s.add_dependency 'avm-git', '~> 0.10', '>= 0.10.1'
23
23
  s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.6'
24
24
  s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
25
25
  s.add_dependency 'eac_git', '~> 0.14'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.142.6'
5
+ VERSION = '0.142.7'
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/yaml'
4
5
  require 'fileutils'
5
6
 
6
7
  module EacFs
@@ -33,12 +34,30 @@ module EacFs
33
34
  read
34
35
  end
35
36
 
37
+ # @return [Object]
38
+ def read_or_store_yaml(use_cache = true)
39
+ write_yaml(yield) unless stored? && use_cache
40
+
41
+ read_yaml
42
+ end
43
+
44
+ # @return [Object, nil]
45
+ def read_yaml
46
+ r = read
47
+ r.nil? ? nil : ::EacRubyUtils::Yaml.load(r)
48
+ end
49
+
36
50
  def write(value)
37
51
  assert_directory_on_path
38
52
  ::File.write(content_path, value)
39
53
  value
40
54
  end
41
55
 
56
+ def write_yaml(object)
57
+ write(::EacRubyUtils::Yaml.dump(object))
58
+ object
59
+ end
60
+
42
61
  def child(*child_path_parts)
43
62
  self.class.new(path, *child_path_parts)
44
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacFs
4
- VERSION = '0.15.0'
4
+ VERSION = '0.16.0'
5
5
  end
@@ -5,7 +5,7 @@ require 'shellwords'
5
5
 
6
6
  module EacRubyUtils
7
7
  module Envs
8
- class Command
8
+ module BaseCommand
9
9
  class AppendCommandOptions
10
10
  enable_method_class
11
11
  common_constructor :command, :command_line, :options
@@ -4,17 +4,18 @@ require 'eac_ruby_utils/struct'
4
4
 
5
5
  module EacRubyUtils
6
6
  module Envs
7
- class Command
7
+ module BaseCommand
8
8
  module Concat
9
9
  AND_OPERATOR = '&&'
10
10
  BEFORE_OPERATOR = ';'
11
11
  OR_OPERATOR = '||'
12
12
  PIPE_OPERATOR = '|'
13
13
 
14
+ # @param operator [Symbol]
15
+ # @return [EacRubyUtils::Envs::CompositeCommand]
14
16
  def concat(operator, other_command)
15
- duplicate_by_extra_options(concat: ::EacRubyUtils::Struct.new(
16
- operator: operator, command: other_command
17
- ))
17
+ require 'eac_ruby_utils/envs/composite_command'
18
+ ::EacRubyUtils::Envs::CompositeCommand.new(operator, self, other_command)
18
19
  end
19
20
 
20
21
  # @return [EacRubyUtils::Envs::Command]
@@ -34,14 +35,6 @@ module EacRubyUtils
34
35
  def pipe(other_command)
35
36
  concat(PIPE_OPERATOR, other_command)
36
37
  end
37
-
38
- private
39
-
40
- def append_concat(command)
41
- extra_options[:concat].if_present(command) do |v|
42
- "#{command} #{v.operator} #{v.command.command}"
43
- end
44
- end
45
38
  end
46
39
  end
47
40
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module EacRubyUtils
4
4
  module Envs
5
- class Command
5
+ module BaseCommand
6
6
  module Debugging
7
7
  def debug?
8
8
  ENV['DEBUG'].to_s.strip != ''
@@ -8,7 +8,7 @@ require 'pp'
8
8
 
9
9
  module EacRubyUtils
10
10
  module Envs
11
- class Command
11
+ module BaseCommand
12
12
  module Execution
13
13
  def execute!(options = {})
14
14
  options[:exit_outputs] = status_results.merge(options[:exit_outputs].presence || {})
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/hash/indifferent_access'
4
+ require 'active_support/core_ext/object/blank'
5
+ require 'shellwords'
6
+
7
+ module EacRubyUtils
8
+ module Envs
9
+ module BaseCommand
10
+ module ExtraOptions
11
+ # @return [ActiveSupport::HashWithIndifferentAccess]
12
+ def extra_options
13
+ @extra_options ||= {}.with_indifferent_access
14
+ end
15
+
16
+ def status_result(status_code, result)
17
+ duplicate_by_extra_options(status_results: status_results.merge(status_code => result))
18
+ end
19
+
20
+ private
21
+
22
+ def status_results
23
+ extra_options[:status_results] ||= {}.with_indifferent_access
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'shellwords'
5
+
6
+ module EacRubyUtils
7
+ module Envs
8
+ module BaseCommand
9
+ require_sub __FILE__
10
+
11
+ common_concern do
12
+ enable_abstract_methods
13
+ include ::EacRubyUtils::Envs::BaseCommand::Concat
14
+ include ::EacRubyUtils::Envs::BaseCommand::Debugging
15
+ include ::EacRubyUtils::Envs::BaseCommand::Execution
16
+ include ::EacRubyUtils::Envs::BaseCommand::ExtraOptions
17
+ end
18
+
19
+ # @return [EacRubyUtils::Envs::BaseEnv]
20
+ def env
21
+ raise_abstract_method __method__
22
+ end
23
+
24
+ def command(options = {})
25
+ append_command_options(
26
+ env.command_line(command_line_without_env),
27
+ options
28
+ )
29
+ end
30
+
31
+ # @return [String]
32
+ def command_line_without_env(_options = {})
33
+ raise_abstract_method __method__
34
+ end
35
+
36
+ private
37
+
38
+ def escape(arg)
39
+ arg = arg.to_s
40
+ m = /^\@ESC_(.+)$/.match(arg)
41
+ m ? m[1] : Shellwords.escape(arg)
42
+ end
43
+ end
44
+ end
45
+ end
@@ -12,18 +12,8 @@ module EacRubyUtils
12
12
  duplicate_by_extra_options(chdir: dir)
13
13
  end
14
14
 
15
- def status_result(status_code, result)
16
- duplicate_by_extra_options(status_results: status_results.merge(status_code => result))
17
- end
18
-
19
15
  private
20
16
 
21
- attr_reader :extra_options
22
-
23
- def status_results
24
- extra_options[:status_results] ||= {}.with_indifferent_access
25
- end
26
-
27
17
  def append_chdir(command)
28
18
  extra_options[:chdir].present? ? "(cd '#{extra_options[:chdir]}' ; #{command} )" : command
29
19
  end
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'shellwords'
4
+ require 'eac_ruby_utils/envs/base_command'
5
5
 
6
6
  module EacRubyUtils
7
7
  module Envs
8
8
  class Command
9
9
  require_sub __FILE__, include_modules: true, require_dependency: true
10
+ include ::EacRubyUtils::Envs::BaseCommand
10
11
 
11
12
  class << self
12
13
  # @param command [Array]
@@ -39,18 +40,11 @@ module EacRubyUtils
39
40
  "#{args} [ENV: #{env}]"
40
41
  end
41
42
 
42
- def command(options = {})
43
- append_command_options(
44
- env.command_line(command_line_without_env),
45
- options
46
- )
47
- end
48
-
49
43
  # @return [String]
50
44
  def command_line_without_env
51
45
  c = args
52
46
  c = c.map { |x| escape(x) }.join(' ') if c.is_a?(Enumerable)
53
- append_chdir(append_concat(append_envvars(c)))
47
+ append_chdir(append_envvars(c))
54
48
  end
55
49
 
56
50
  protected
@@ -68,12 +62,6 @@ module EacRubyUtils
68
62
  def duplicate_by_extra_options(set_extra_options)
69
63
  duplicate(args, extra_options.merge(set_extra_options))
70
64
  end
71
-
72
- def escape(arg)
73
- arg = arg.to_s
74
- m = /^\@ESC_(.+)$/.match(arg)
75
- m ? m[1] : Shellwords.escape(arg)
76
- end
77
65
  end
78
66
  end
79
67
  end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/envs/base_command'
5
+
6
+ module EacRubyUtils
7
+ module Envs
8
+ class CompositeCommand
9
+ include ::EacRubyUtils::Envs::BaseCommand
10
+
11
+ enable_listable
12
+ lists.add_string :operator, '&&' => :and, ';' => :before, '||' => :or, '|' => :pipe
13
+
14
+ common_constructor :operator, :left_command, :right_command do
15
+ self.operator = self.class.lists.operator.value_validate!(operator.to_s)
16
+ end
17
+
18
+ # @return [EacRubyUtils::Envs::BaseEnv]
19
+ delegate :env, to: :left_command
20
+
21
+ # @return [String]
22
+ def command_line_without_env(_options = {})
23
+ ::Shellwords.join(['bash', '-c', bash_command])
24
+ end
25
+
26
+ # @return [String]
27
+ def bash_command
28
+ ['set', '-euo', 'pipefail', OPERATOR_BEFORE, left_command.command, operator,
29
+ right_command.command].join(' ')
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.108.0'
4
+ VERSION = '0.109.0'
5
5
  end
@@ -19,16 +19,11 @@ RSpec.describe ::EacRubyUtils::Envs::Command do
19
19
 
20
20
  describe '#execute' do
21
21
  it do
22
- expect(ok_command.execute).to(
23
- eq({ command: 'echo -n THE\\ OUTPUT', stdout: ok_command_output, stderr: '', exit_code: 0 })
24
- )
22
+ assert_execute_result(ok_command.execute, true, ok_command_output)
25
23
  end
26
24
 
27
25
  it do
28
- expect(error_command.execute).to(
29
- eq({ command: 'cat a_file_that_not_exists', stdout: '',
30
- stderr: "cat: a_file_that_not_exists: No such file or directory\n", exit_code: 256 })
31
- )
26
+ assert_execute_result(error_command.execute, false, '')
32
27
  end
33
28
  end
34
29
 
@@ -57,37 +52,49 @@ RSpec.describe ::EacRubyUtils::Envs::Command do
57
52
  end
58
53
  end
59
54
 
55
+ describe '#and' do
56
+ it do
57
+ assert_execute_result(ok_command.and(error_command).execute, false, ok_command_output)
58
+ end
59
+
60
+ it do
61
+ assert_execute_result(error_command.and(ok_command).execute, false, '')
62
+ end
63
+ end
64
+
65
+ describe '#before' do
66
+ it do
67
+ assert_execute_result(ok_command.before(error_command).execute, false, ok_command_output)
68
+ end
69
+
70
+ it do
71
+ assert_execute_result(error_command.before(ok_command).execute, false, '')
72
+ end
73
+ end
74
+
60
75
  describe '#or' do
61
76
  it do
62
- expect(ok_command.or(error_command).execute).to(
63
- eq({ command: 'echo -n THE\\ OUTPUT || cat a_file_that_not_exists',
64
- stdout: ok_command_output, stderr: '', exit_code: 0 })
65
- )
77
+ assert_execute_result(ok_command.or(error_command).execute, true, ok_command_output)
66
78
  end
67
79
 
68
80
  it do
69
- expect(error_command.or(ok_command).execute).to(
70
- eq({ command: 'cat a_file_that_not_exists || echo -n THE\\ OUTPUT',
71
- stdout: ok_command_output,
72
- stderr: "cat: a_file_that_not_exists: No such file or directory\n", exit_code: 0 })
73
- )
81
+ assert_execute_result(error_command.or(ok_command).execute, true, ok_command_output)
74
82
  end
75
83
  end
76
84
 
77
85
  describe '#pipe' do
78
86
  it do
79
- expect(ok_command.pipe(error_command).execute).to(
80
- eq({ command: 'echo -n THE\\ OUTPUT | cat a_file_that_not_exists', stdout: '',
81
- stderr: "cat: a_file_that_not_exists: No such file or directory\n", exit_code: 256 })
82
- )
87
+ assert_execute_result(ok_command.pipe(error_command).execute, false, '')
83
88
  end
84
89
 
85
90
  it do
86
- expect(error_command.pipe(ok_command).execute).to(
87
- eq({ command: 'cat a_file_that_not_exists | echo -n THE\\ OUTPUT',
88
- stdout: ok_command_output,
89
- stderr: "cat: a_file_that_not_exists: No such file or directory\n", exit_code: 0 })
90
- )
91
+ assert_execute_result(error_command.pipe(ok_command).execute, false, ok_command_output)
91
92
  end
92
93
  end
94
+
95
+ def assert_execute_result(actual, expected_successful, expected_stdout)
96
+ expect(successful: actual.fetch(:exit_code).zero?, stdout: actual.fetch(:stdout)).to(
97
+ eq(successful: expected_successful, stdout: expected_stdout)
98
+ )
99
+ end
93
100
  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.47.0
4
+ version: 0.47.1
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: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.58'
19
+ version: '0.57'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.58'
26
+ version: '0.57'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,26 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: avm-eac_postgresql_base0
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.2'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 0.2.2
93
+ type: :runtime
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '0.2'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 0.2.2
83
103
  - !ruby/object:Gem::Dependency
84
104
  name: avm-eac_rails_base0
85
105
  requirement: !ruby/object:Gem::Requirement
@@ -217,7 +237,7 @@ dependencies:
217
237
  version: '0.142'
218
238
  - - ">="
219
239
  - !ruby/object:Gem::Version
220
- version: 0.142.6
240
+ version: 0.142.7
221
241
  type: :runtime
222
242
  prerelease: false
223
243
  version_requirements: !ruby/object:Gem::Requirement
@@ -227,21 +247,21 @@ dependencies:
227
247
  version: '0.142'
228
248
  - - ">="
229
249
  - !ruby/object:Gem::Version
230
- version: 0.142.6
250
+ version: 0.142.7
231
251
  - !ruby/object:Gem::Dependency
232
252
  name: eac_ruby_utils
233
253
  requirement: !ruby/object:Gem::Requirement
234
254
  requirements:
235
255
  - - "~>"
236
256
  - !ruby/object:Gem::Version
237
- version: '0.108'
257
+ version: '0.109'
238
258
  type: :runtime
239
259
  prerelease: false
240
260
  version_requirements: !ruby/object:Gem::Requirement
241
261
  requirements:
242
262
  - - "~>"
243
263
  - !ruby/object:Gem::Version
244
- version: '0.108'
264
+ version: '0.109'
245
265
  - !ruby/object:Gem::Dependency
246
266
  name: eac_ruby_gem_support
247
267
  requirement: !ruby/object:Gem::Requirement
@@ -1594,14 +1614,17 @@ files:
1594
1614
  - sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb
1595
1615
  - sub/eac_ruby_utils/lib/eac_ruby_utils/enum.rb
1596
1616
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs.rb
1617
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command.rb
1618
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/append_command_options.rb
1619
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/concat.rb
1620
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/debugging.rb
1621
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/execution.rb
1622
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/extra_options.rb
1597
1623
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb
1598
1624
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb
1599
- - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/append_command_options.rb
1600
- - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb
1601
- - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/debugging.rb
1602
1625
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb
1603
- - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/execution.rb
1604
1626
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb
1627
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/composite_command.rb
1605
1628
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb
1606
1629
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_error.rb
1607
1630
  - sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_result.rb