avm-tools 0.83.0 → 0.84.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/eac_writings_base1/apache_host.rb +17 -0
- data/lib/avm/eac_writings_base1/build.rb +2 -2
- data/lib/avm/eac_writings_base1/deploy.rb +26 -0
- data/lib/avm/eac_writings_base1/instance.rb +11 -0
- data/lib/avm/tools/runner/eac_writings_base1.rb +15 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6a742d3c0263c2512a52c5109e56336b275560ed7db3c94fe42792021c1762a
|
4
|
+
data.tar.gz: 3efdf68bf27d110a3a17ea012b208b6a59b40a05158f360f018423917fc55089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c1fcb15c0f44dc6a91081eed404f64e1a729fce4de417ada083f09b23149a7192b33d8ed67a4d087de84c161f43aca09b10dd9a51ec4c1ce645354c2cd62b96
|
7
|
+
data.tar.gz: 04bae047386b129d906a5ed2f8663ba0c0c3019a48b0b63603ac431ad4cc17163b92bae642daa9785d3c8d8277e1643d65da5ff612815e1110ae0566a8258086
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/apache_host'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacWritingsBase1
|
7
|
+
class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
|
8
|
+
def document_root
|
9
|
+
instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
|
10
|
+
end
|
11
|
+
|
12
|
+
def extra_content
|
13
|
+
''
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -12,7 +12,7 @@ module Avm
|
|
12
12
|
enable_listable
|
13
13
|
lists.add_symbol :option, :target_directory
|
14
14
|
common_constructor :project, :options, default: [{}] do
|
15
|
-
self.options = options.symbolize_keys
|
15
|
+
self.options = self.class.lists.option.hash_keys_validate!(options.symbolize_keys)
|
16
16
|
end
|
17
17
|
|
18
18
|
def run
|
@@ -27,7 +27,7 @@ module Avm
|
|
27
27
|
|
28
28
|
def target_directory
|
29
29
|
::EacRubyUtils::Fs::ClearableDirectory.new(
|
30
|
-
options[OPTION_TARGET_DIRECTORY]
|
30
|
+
options[OPTION_TARGET_DIRECTORY] || default_target_directory
|
31
31
|
)
|
32
32
|
end
|
33
33
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/deploy'
|
4
|
+
require 'avm/eac_writings_base1/project'
|
5
|
+
require 'avm/eac_writings_base1/build'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module EacWritingsBase1
|
9
|
+
class Deploy < ::Avm::EacWebappBase0::Deploy
|
10
|
+
def build_content
|
11
|
+
::Avm::EacWritingsBase1::Build.new(
|
12
|
+
project,
|
13
|
+
::Avm::EacWritingsBase1::Build::OPTION_TARGET_DIRECTORY => build_dir
|
14
|
+
).run
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def project_uncached
|
20
|
+
::Avm::EacWritingsBase1::Project.new(
|
21
|
+
instance.source_instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/runner'
|
4
|
+
require 'avm/eac_writings_base1'
|
5
|
+
require 'eac_ruby_utils/console/docopt_runner'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module Tools
|
9
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
10
|
+
class EacWritingsBase1 < ::Avm::EacWebappBase0::Runner
|
11
|
+
require_sub __FILE__
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
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.84.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-12-
|
11
|
+
date: 2020-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -347,8 +347,11 @@ files:
|
|
347
347
|
- lib/avm/eac_writings_base0/project_build/chapters_content.rb
|
348
348
|
- lib/avm/eac_writings_base0/project_build/copy_files.rb
|
349
349
|
- lib/avm/eac_writings_base1.rb
|
350
|
+
- lib/avm/eac_writings_base1/apache_host.rb
|
350
351
|
- lib/avm/eac_writings_base1/build.rb
|
351
352
|
- lib/avm/eac_writings_base1/build/file.rb
|
353
|
+
- lib/avm/eac_writings_base1/deploy.rb
|
354
|
+
- lib/avm/eac_writings_base1/instance.rb
|
352
355
|
- lib/avm/eac_writings_base1/project.rb
|
353
356
|
- lib/avm/executables.rb
|
354
357
|
- lib/avm/files.rb
|
@@ -499,6 +502,7 @@ files:
|
|
499
502
|
- lib/avm/tools/runner/eac_redmine_base0/project_rename.rb
|
500
503
|
- lib/avm/tools/runner/eac_wordpress_base0.rb
|
501
504
|
- lib/avm/tools/runner/eac_writings_base0.rb
|
505
|
+
- lib/avm/tools/runner/eac_writings_base1.rb
|
502
506
|
- lib/avm/tools/runner/files.rb
|
503
507
|
- lib/avm/tools/runner/files/format.rb
|
504
508
|
- lib/avm/tools/runner/files/rotate.rb
|