avm-tools 0.113.4 → 0.113.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5488a15876aa81048d9c653caff915780167551415a60d351c3137fd2418f78a
4
- data.tar.gz: 73cf7cf7ef72418ded4b5cffac2dd4f7e2e399ce3a2b3149d962a5f1805d1e85
3
+ metadata.gz: c47214e0edbe236b0355175ef1738a7f05d6c501a745f65f22c0d3d30d44302a
4
+ data.tar.gz: 60065d8986d7646e75742cad5619a880d26a164e733494af237f8cfd0417092e
5
5
  SHA512:
6
- metadata.gz: ed7d05f9c93b6710189ec11e8b3e9f604b5066a2612c4053e978ac23d04da049257a42e6eab379c27b594d3255b09e682b44ae47d596e7529e53dcbe72c5da11
7
- data.tar.gz: 18511d97a59192acf9e1ed6c14bf8e8a892c2a4a5af6caacfc5d9e7e9453a75057b2a265ea73b6890edc0a04e6f12070e63f973a8329e0582a2f96d6dd5d2793
6
+ metadata.gz: 2dc7d4d4d771e8f2008cf06dc92612a59dd45798d4a189e43da81213e9fa5bf80ea6490065d1de7d658371b1efb4218c283c179ffdc56b51076e6d892ddda8c2
7
+ data.tar.gz: b8b3652bafe08e5eda33e56f02ef8d75c55d80604cf576d7cdd65053d06ab8d940175b9aec75541f3e8b834f87d89c1cae1ce87ef31e1fd407e1fd021c8d1a64
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.113.4'
5
+ VERSION = '0.113.5'
6
6
  end
7
7
  end
@@ -1,22 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/instances/entry_keys'
4
+
3
5
  module Avm
4
6
  module Instances
5
7
  class Base
6
8
  module AutoValues
7
9
  module Filesystem
8
- FS_PATH_KEY = :fs_path
9
-
10
10
  def auto_fs_path
11
- inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, FS_PATH_KEY) do |v|
12
- v + '/' + id
13
- end
11
+ inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID,
12
+ ::Avm::Instances::EntryKeys::FS_PATH) { |v| v + '/' + id }
14
13
  end
15
14
 
16
15
  def auto_data_fs_path
17
- inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID, :data_fs_path) do |v|
18
- v + '/' + id
19
- end
16
+ inherited_entry_value(::Avm::Instances::EntryKeys::HOST_ID,
17
+ ::Avm::Instances::EntryKeys::DATA_FS_PATH) { |v| v + '/' + id }
20
18
  end
21
19
 
22
20
  def auto_fs_url
@@ -42,7 +42,7 @@ module Avm
42
42
  end
43
43
 
44
44
  {
45
- '' => %w[fs_path host_id name source_instance_id],
45
+ '' => %w[data_fs_path fs_path host_id name source_instance_id],
46
46
  database: %w[id hostname limit name password port system timeout username extra],
47
47
  docker: %w[registry],
48
48
  mailer: {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.13.0'
4
+ VERSION = '0.14.0'
5
5
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  require 'avm/eac_rails_base0/instance'
4
4
  require 'avm/eac_rails_base0/deploy'
5
+ require 'avm/eac_rails_base0/apache_host'
6
+ require 'avm/eac_rails_base0/apache_path'
5
7
  require 'avm/eac_rails_base1/runner'
6
8
  require 'eac_ruby_utils/core_ext'
7
9
 
@@ -13,6 +13,10 @@ module EacFs
13
13
 
14
14
  delegate :remove, to: :file
15
15
 
16
+ def clean
17
+ file.truncate(0) if file.exist?
18
+ end
19
+
16
20
  def file_size
17
21
  file.file? ? file.size : 0
18
22
  end
@@ -23,6 +23,11 @@ module EacFs
23
23
  self
24
24
  end
25
25
 
26
+ # @return [EacFs::Logs]
27
+ def clean_all
28
+ log_set.values.each(&:clean)
29
+ end
30
+
26
31
  # @return [EacFs::Logs]
27
32
  def remove_all
28
33
  log_set.each_key { |label| remove(label) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacFs
4
- VERSION = '0.8.1'
4
+ VERSION = '0.9.0'
5
5
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.files = Dir['{lib}/**/*', 'MIT-LICENSE', 'README.rdoc']
17
17
 
18
- s.add_dependency 'activesupport', '>= 4.0'
18
+ s.add_dependency 'activesupport', '>= 4', '< 7'
19
19
  s.add_dependency 'addressable', '~> 2.6'
20
20
  s.add_dependency 'filesize'
21
21
  s.add_dependency 'net-ssh', '~> 4.2'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.82.0'
4
+ VERSION = '0.82.1'
5
5
  end
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.113.4
4
+ version: 0.113.5
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: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers