avm-tools 0.85.1 → 0.89.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_rails_base1/runner/log.rb +43 -0
- data/lib/avm/eac_rails_base1/runner_with/bundle.rb +2 -32
- data/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +47 -0
- data/lib/avm/eac_webapp_base0/deploy.rb +16 -4
- data/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +1 -1
- data/lib/avm/eac_webapp_base0/deploy/git_info.rb +1 -1
- data/lib/avm/eac_webapp_base0/instance.rb +2 -0
- data/lib/avm/eac_webapp_base0/runner/deploy.rb +13 -21
- data/lib/avm/git/file_auto_fixup.rb +22 -3
- data/lib/avm/instances/base/auto_values/filesystem.rb +12 -0
- data/lib/avm/instances/runner.rb +3 -5
- data/lib/avm/projects/stereotypes/git/update.rb +42 -0
- data/lib/avm/projects/stereotypes/git/update/subrepo.rb +85 -0
- data/lib/avm/tools/runner.rb +2 -4
- data/lib/avm/tools/runner/eac_rails_base0.rb +1 -1
- data/lib/avm/tools/runner/eac_rails_base0/apache_path.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0/docker.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +1 -1
- data/lib/avm/tools/runner/eac_webapp_base0.rb +14 -0
- data/lib/avm/tools/runner/eac_wordpress_base0.rb +1 -1
- data/lib/avm/tools/runner/eac_writings_base0.rb +1 -1
- data/lib/avm/tools/runner/eac_writings_base1.rb +1 -1
- data/lib/avm/tools/runner/files.rb +7 -15
- data/lib/avm/tools/runner/files/format.rb +18 -27
- data/lib/avm/tools/runner/files/rotate.rb +11 -21
- data/lib/avm/tools/runner/git.rb +10 -15
- data/lib/avm/tools/runner/git/auto_commit.rb +2 -2
- data/lib/avm/tools/runner/git/auto_fixup.rb +23 -16
- data/lib/avm/tools/runner/git/commit.rb +2 -2
- data/lib/avm/tools/runner/git/deploy.rb +18 -28
- data/lib/avm/tools/runner/git/dirty_files.rb +2 -2
- data/lib/avm/tools/runner/git/issue.rb +2 -2
- data/lib/avm/tools/runner/git/organize.rb +2 -2
- data/lib/avm/tools/runner/git/revisions_test.rb +2 -2
- data/lib/avm/tools/runner/git/subrepo.rb +2 -2
- data/lib/avm/tools/runner/git/subrepo/check.rb +2 -2
- data/lib/avm/tools/runner/git/subrepo/clone.rb +2 -2
- data/lib/avm/tools/runner/git/subrepo/fix.rb +4 -3
- data/lib/avm/tools/runner/instance.rb +4 -7
- data/lib/avm/tools/runner/instance/info.rb +5 -8
- data/lib/avm/tools/runner/launcher.rb +1 -1
- data/lib/avm/tools/runner/launcher/instances.rb +1 -1
- data/lib/avm/tools/runner/launcher/projects.rb +1 -1
- data/lib/avm/tools/runner/launcher/publish.rb +1 -1
- data/lib/avm/tools/runner/local_project.rb +5 -8
- data/lib/avm/tools/runner/local_project/eac_writings_base0.rb +2 -2
- data/lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb +2 -2
- data/lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb +2 -2
- data/lib/avm/tools/runner/local_project/eac_writings_base0/info.rb +2 -2
- data/lib/avm/tools/runner/local_project/eac_writings_base1.rb +2 -2
- data/lib/avm/tools/runner/local_project/eac_writings_base1/build.rb +2 -2
- data/lib/avm/tools/runner/local_project/info.rb +2 -2
- data/lib/avm/tools/runner/local_project/ruby.rb +2 -2
- data/lib/avm/tools/runner/local_project/ruby/bundler.rb +2 -2
- data/lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb +2 -2
- data/lib/avm/tools/runner/local_project/test.rb +2 -2
- data/lib/avm/tools/runner/local_project/update.rb +2 -2
- data/lib/avm/tools/runner/local_project/version_bump.rb +10 -13
- data/lib/avm/tools/runner/ruby.rb +1 -1
- data/lib/avm/tools/runner/ruby/gems.rb +1 -1
- data/lib/avm/tools/runner/ruby/gems/generate.rb +1 -1
- data/lib/avm/tools/runner/ruby/rubocop.rb +1 -1
- data/lib/avm/tools/runner/self.rb +1 -1
- data/lib/avm/tools/runner/self/docker.rb +1 -1
- data/lib/avm/tools/version.rb +1 -1
- data/vendor/eac_cli/lib/eac_cli/docopt/runner_context_replacement.rb +15 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +5 -0
- data/vendor/eac_cli/lib/eac_cli/parser/alternative.rb +4 -4
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/long_options.rb +37 -0
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb +29 -0
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb +7 -36
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +45 -0
- data/vendor/eac_cli/lib/eac_cli/runner.rb +0 -48
- data/vendor/eac_cli/lib/eac_cli/runner/after_class_methods.rb +29 -0
- data/vendor/eac_cli/lib/eac_cli/runner/instance_methods.rb +31 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +15 -3
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +22 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +1 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +9 -6
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb +4 -9
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb +0 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +4 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +38 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +8 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/template.rb +10 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb +1 -8
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb +3 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +8 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +2 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +17 -0
- metadata +18 -3
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb +0 -25
data/lib/avm/tools/runner.rb
CHANGED
@@ -3,14 +3,12 @@
|
|
3
3
|
require 'avm/self'
|
4
4
|
require 'avm/tools/version'
|
5
5
|
require 'eac_ruby_base0/runner'
|
6
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
7
|
-
require 'eac_ruby_utils/core_ext'
|
8
6
|
|
9
7
|
module Avm
|
10
8
|
module Tools
|
11
|
-
class Runner
|
12
|
-
include ::EacRubyBase0::Runner
|
9
|
+
class Runner
|
13
10
|
require_sub __FILE__
|
11
|
+
include ::EacRubyBase0::Runner
|
14
12
|
|
15
13
|
runner_definition do
|
16
14
|
desc 'Tools for AVM.'
|
@@ -7,7 +7,7 @@ require 'avm/eac_rails_base0/apache_path'
|
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
10
|
-
class Runner
|
10
|
+
class Runner
|
11
11
|
class EacRailsBase0 < ::Avm::EacRailsBase1::Runner
|
12
12
|
class ApachePath < ::EacRubyUtils::Console::DocoptRunner
|
13
13
|
runner_with
|
@@ -7,7 +7,7 @@ require 'eac_ruby_utils/core_ext'
|
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
10
|
-
class Runner
|
10
|
+
class Runner
|
11
11
|
class EacRedmineBase0 < ::Avm::EacRailsBase1::Runner
|
12
12
|
class CoreUpdate < ::EacRubyUtils::Console::DocoptRunner
|
13
13
|
include ::EacCli::DefaultRunner
|
@@ -5,7 +5,7 @@ require 'avm/eac_rails_base1/runner/code_runner'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
8
|
+
class Runner
|
9
9
|
class EacRedmineBase0 < ::Avm::EacRailsBase1::Runner
|
10
10
|
class ProjectRename
|
11
11
|
runner_with ::Avm::EacRailsBase1::RunnerWith::Bundle do
|
@@ -0,0 +1,14 @@
|
|
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 Tools
|
8
|
+
class Runner
|
9
|
+
class EacWebappBase0 < ::Avm::EacWebappBase0::Runner
|
10
|
+
require_sub __FILE__
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -1,24 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
3
|
+
require 'eac_cli/core_ext'
|
5
4
|
|
6
5
|
module Avm
|
7
6
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class Files
|
7
|
+
class Runner
|
8
|
+
class Files
|
10
9
|
require_sub __FILE__
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
Usage:
|
16
|
-
__PROGRAM__ [options] __SUBCOMMANDS__
|
17
|
-
__PROGRAM__ -h | --help
|
18
|
-
|
19
|
-
Options:
|
20
|
-
-h --help Show this screen.
|
21
|
-
DOCOPT
|
10
|
+
runner_with :help, :subcommands do
|
11
|
+
desc 'Files utilities for AVM.'
|
12
|
+
subcommands
|
13
|
+
end
|
22
14
|
end
|
23
15
|
end
|
24
16
|
end
|
@@ -1,40 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/files/formatter'
|
4
|
+
require 'eac_cli/core_ext'
|
4
5
|
require 'eac_launcher/git/base'
|
5
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
6
|
-
require 'eac_ruby_utils/core_ext'
|
7
6
|
|
8
7
|
module Avm
|
9
8
|
module Tools
|
10
|
-
class Runner
|
11
|
-
class Files
|
12
|
-
class Format
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
Options:
|
23
|
-
-h --help Show this screen.
|
24
|
-
-a --apply Confirm changes.
|
25
|
-
-n --no-recursive No recursive.
|
26
|
-
-v --verbose Verbose
|
27
|
-
-d --git-dirty Select Git dirty files to format.
|
28
|
-
DOCOPT
|
9
|
+
class Runner
|
10
|
+
class Files
|
11
|
+
class Format
|
12
|
+
runner_with :help do
|
13
|
+
desc 'Format files.'
|
14
|
+
bool_opt '-a', '--apply', 'Confirm changes.'
|
15
|
+
bool_opt '-n', '--no-recursive', 'No recursive.'
|
16
|
+
bool_opt '-v', '--verbose', 'Verbose'
|
17
|
+
bool_opt '-d', '--git-dirty', 'Select Git dirty files to format.'
|
18
|
+
pos_arg :paths, repeat: true, optional: true
|
19
|
+
end
|
29
20
|
|
30
21
|
def run
|
31
22
|
::Avm::Files::Formatter.new(source_paths, formatter_options).run
|
32
23
|
end
|
33
24
|
|
34
25
|
def formatter_options
|
35
|
-
{ ::Avm::Files::Formatter::OPTION_APPLY =>
|
36
|
-
::Avm::Files::Formatter::OPTION_RECURSIVE => !
|
37
|
-
::Avm::Files::Formatter::OPTION_VERBOSE =>
|
26
|
+
{ ::Avm::Files::Formatter::OPTION_APPLY => parsed.apply?,
|
27
|
+
::Avm::Files::Formatter::OPTION_RECURSIVE => !parsed.no_recursive?,
|
28
|
+
::Avm::Files::Formatter::OPTION_VERBOSE => parsed.verbose? }
|
38
29
|
end
|
39
30
|
|
40
31
|
def git
|
@@ -46,10 +37,10 @@ module Avm
|
|
46
37
|
end
|
47
38
|
|
48
39
|
def source_paths
|
49
|
-
if
|
50
|
-
|
40
|
+
if parsed.git_dirty?
|
41
|
+
parsed.paths + git_dirty_files
|
51
42
|
else
|
52
|
-
|
43
|
+
parsed.paths.if_present(%w[.])
|
53
44
|
end
|
54
45
|
end
|
55
46
|
end
|
@@ -1,28 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
-
require 'eac_ruby_utils/console/speaker'
|
5
3
|
require 'avm/files/rotate'
|
4
|
+
require 'eac_cli/core_ext'
|
6
5
|
|
7
6
|
module Avm
|
8
7
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class Files
|
11
|
-
class Rotate
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Usage:
|
18
|
-
__PROGRAM__ [options] <path>
|
19
|
-
__PROGRAM__ -h | --help
|
20
|
-
|
21
|
-
Options:
|
22
|
-
-h --help Show this screen.
|
23
|
-
-L --space-limit=<space> Limit by <space> the space used by rotated files.
|
24
|
-
DOCOPT
|
25
|
-
|
8
|
+
class Runner
|
9
|
+
class Files
|
10
|
+
class Rotate
|
11
|
+
runner_with :help do
|
12
|
+
desc 'Rotates a file (Like a backup).'
|
13
|
+
arg_opt '-L', '--space-limit', 'Limit by <space> the space used by rotated files.'
|
14
|
+
pos_arg :path
|
15
|
+
end
|
26
16
|
def run
|
27
17
|
error_message = rotate.run
|
28
18
|
fatal_error(error_message) if error_message
|
@@ -30,8 +20,8 @@ module Avm
|
|
30
20
|
|
31
21
|
def rotate
|
32
22
|
@rotate ||= ::Avm::Files::Rotate.new(
|
33
|
-
|
34
|
-
space_limit:
|
23
|
+
parsed.path,
|
24
|
+
space_limit: parsed.space_limit
|
35
25
|
)
|
36
26
|
end
|
37
27
|
end
|
data/lib/avm/tools/runner/git.rb
CHANGED
@@ -7,26 +7,21 @@ require 'eac_launcher/git/base'
|
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
10
|
-
class Runner
|
11
|
-
class Git
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
Options:
|
20
|
-
-h --help Show this screen.
|
21
|
-
-C <path> Path to Git repository.
|
22
|
-
DOCOPT
|
10
|
+
class Runner
|
11
|
+
class Git
|
12
|
+
require_sub __FILE__
|
13
|
+
runner_with :help, :subcommands do
|
14
|
+
desc 'Git utilities for AVM.'
|
15
|
+
arg_opt '-C', '--path', 'Path to Git repository.'
|
16
|
+
subcommands
|
17
|
+
end
|
23
18
|
|
24
19
|
def repository_path
|
25
|
-
repository_path? ?
|
20
|
+
repository_path? ? parsed.path : '.'
|
26
21
|
end
|
27
22
|
|
28
23
|
def repository_path?
|
29
|
-
|
24
|
+
parsed.path.present?
|
30
25
|
end
|
31
26
|
|
32
27
|
def git
|
@@ -6,8 +6,8 @@ require 'eac_cli/default_runner'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class Git
|
9
|
+
class Runner
|
10
|
+
class Git
|
11
11
|
class AutoCommit < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
include ::EacCli::DefaultRunner
|
13
13
|
|
@@ -1,43 +1,50 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_cli/core_ext'
|
3
4
|
require 'eac_ruby_utils/console/docopt_runner'
|
4
5
|
require 'avm/git/file_auto_fixup'
|
5
6
|
|
6
7
|
module Avm
|
7
8
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class Git
|
10
|
-
class AutoFixup
|
11
|
-
|
12
|
-
Auto fixup files.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Options:
|
19
|
-
-h --help Mostra esta ajuda.
|
20
|
-
DOCOPT
|
9
|
+
class Runner
|
10
|
+
class Git
|
11
|
+
class AutoFixup
|
12
|
+
runner_with :help do
|
13
|
+
desc 'Auto fixup files.'
|
14
|
+
bool_opt '-l', '--last', 'Equivalent to "--select=1".'
|
15
|
+
arg_opt '-s', '--select', 'Automatically select de <value>-th commit.'
|
16
|
+
bool_opt '-u', '--unique', 'Automatically select the first commit if it is unique.'
|
17
|
+
pos_arg :files, repeat: true, optional: true
|
18
|
+
end
|
21
19
|
|
22
20
|
def run
|
23
21
|
files.each do |file|
|
24
|
-
::Avm::Git::FileAutoFixup.new(
|
22
|
+
::Avm::Git::FileAutoFixup.new(runner_context.call(:git), file, file_options).run
|
25
23
|
end
|
26
24
|
end
|
27
25
|
|
28
26
|
private
|
29
27
|
|
28
|
+
def file_options
|
29
|
+
{ Avm::Git::FileAutoFixup::OPTION_SELECT => select,
|
30
|
+
Avm::Git::FileAutoFixup::OPTION_UNIQUE => parsed.unique? }
|
31
|
+
end
|
32
|
+
|
30
33
|
def files
|
31
34
|
files_from_option || dirty_files
|
32
35
|
end
|
33
36
|
|
34
37
|
def files_from_option
|
35
|
-
r =
|
38
|
+
r = parsed.files
|
36
39
|
r.any? ? r.map { |p| p.to_pathname.expand_path } : nil
|
37
40
|
end
|
38
41
|
|
39
42
|
def dirty_files
|
40
|
-
|
43
|
+
runner_context.call(:git).dirty_files.map(&:path)
|
44
|
+
end
|
45
|
+
|
46
|
+
def select
|
47
|
+
parsed.last? ? 1 : parsed.select
|
41
48
|
end
|
42
49
|
end
|
43
50
|
end
|
@@ -9,8 +9,8 @@ require 'avm/git/commit'
|
|
9
9
|
|
10
10
|
module Avm
|
11
11
|
module Tools
|
12
|
-
class Runner
|
13
|
-
class Git
|
12
|
+
class Runner
|
13
|
+
class Git
|
14
14
|
class Commit < ::EacRubyUtils::Console::DocoptRunner
|
15
15
|
include ::EacRubyUtils::SimpleCache
|
16
16
|
include ::EacRubyUtils::Console::Speaker
|
@@ -1,32 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
-
require 'eac_ruby_utils/console/speaker'
|
5
|
-
require 'eac_ruby_utils/simple_cache'
|
6
3
|
require 'eac_launcher/git/base'
|
7
4
|
require 'avm/git/commit'
|
8
5
|
|
9
6
|
module Avm
|
10
7
|
module Tools
|
11
|
-
class Runner
|
12
|
-
class Git
|
13
|
-
class Deploy
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
Options:
|
25
|
-
-h --help Mostra esta ajuda.
|
26
|
-
-r --reference=<reference> Reference [default: HEAD].
|
27
|
-
-i --instance=<instance-id> Read entries from instance with id=<instance-id>.
|
28
|
-
-a --append-dirs=<append-dirs> Append directories to deploy (List separated by ":").
|
29
|
-
DOCOPT
|
8
|
+
class Runner
|
9
|
+
class Git
|
10
|
+
class Deploy
|
11
|
+
DEFAULT_REFERENCE = 'HEAD'
|
12
|
+
|
13
|
+
runner_with :help do
|
14
|
+
desc 'Deploy a Git revision to a location (Local or remote).'
|
15
|
+
arg_opt '-a', '--append-dirs', 'Append directories to deploy (List separated by ":").'
|
16
|
+
arg_opt '-i', '--instance', 'Read entries from instance with id=<instance-id>.'
|
17
|
+
arg_opt '-r', '--reference', "Reference (default: #{DEFAULT_REFERENCE})."
|
18
|
+
pos_arg :target_url, optional: true
|
19
|
+
end
|
30
20
|
|
31
21
|
def run
|
32
22
|
input_banner
|
@@ -62,7 +52,7 @@ module Avm
|
|
62
52
|
end
|
63
53
|
|
64
54
|
def reference
|
65
|
-
|
55
|
+
parsed.reference || DEFAULT_REFERENCE
|
66
56
|
end
|
67
57
|
|
68
58
|
def git_uncached
|
@@ -70,8 +60,8 @@ module Avm
|
|
70
60
|
end
|
71
61
|
|
72
62
|
def git_repository_path
|
73
|
-
if
|
74
|
-
return
|
63
|
+
if runner_context.call(:repository_path) || dev_instance_fs_path.blank?
|
64
|
+
return runner_context.call(:repository_path)
|
75
65
|
end
|
76
66
|
|
77
67
|
dev_instance_fs_path
|
@@ -94,7 +84,7 @@ module Avm
|
|
94
84
|
end
|
95
85
|
|
96
86
|
def target_url
|
97
|
-
|
87
|
+
parsed.target_url.if_present { |v| return v }
|
98
88
|
instance.if_present { |v| return v.read_entry('fs.url') }
|
99
89
|
nil
|
100
90
|
end
|
@@ -108,11 +98,11 @@ module Avm
|
|
108
98
|
end
|
109
99
|
|
110
100
|
def instance_id
|
111
|
-
|
101
|
+
parsed.instance
|
112
102
|
end
|
113
103
|
|
114
104
|
def appended_directories
|
115
|
-
|
105
|
+
parsed.append_dirs.to_s.split(':')
|
116
106
|
end
|
117
107
|
end
|
118
108
|
end
|