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
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class Git
|
8
|
+
class Runner
|
9
|
+
class Git
|
10
10
|
class DirtyFiles < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
enable_console_speaker
|
12
12
|
|
@@ -6,8 +6,8 @@ require 'avm/git/issue/complete'
|
|
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 Issue < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
enable_simple_cache
|
13
13
|
include ::EacRubyUtils::Console::Speaker
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_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 Organize < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
include ::EacCli::DefaultRunner
|
13
13
|
|
@@ -6,8 +6,8 @@ require 'avm/git/revision_test'
|
|
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 RevisionsTest < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
enable_simple_cache
|
13
13
|
enable_console_speaker
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class Git
|
8
|
+
class Runner
|
9
|
+
class Git
|
10
10
|
class Subrepo < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
require_sub __FILE__
|
12
12
|
include ::EacCli::DefaultRunner
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_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 Subrepo < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
class Check < ::EacRubyUtils::Console::DocoptRunner
|
13
13
|
include ::EacCli::DefaultRunner
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_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 Subrepo < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
class Clone
|
13
13
|
runner_with :help do
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_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 Subrepo < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
class Fix
|
13
13
|
runner_with :help do
|
@@ -29,7 +29,8 @@ module Avm
|
|
29
29
|
infov 'Dirty files', local_repos.dirty_files.count
|
30
30
|
local_repos.dirty_files.each do |file|
|
31
31
|
infov ' * Ammending', file.path
|
32
|
-
::Avm::Git::FileAutoFixup.new(runner_context.call(:git), file.path
|
32
|
+
::Avm::Git::FileAutoFixup.new(runner_context.call(:git), file.path,
|
33
|
+
::Avm::Git::FileAutoFixup::OPTION_UNIQUE => true).run
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -2,16 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'avm/instances/base'
|
4
4
|
require 'eac_cli/core_ext'
|
5
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
6
5
|
|
7
6
|
module Avm
|
8
7
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class Instance
|
8
|
+
class Runner
|
9
|
+
class Instance
|
11
10
|
require_sub __FILE__
|
12
|
-
runner_with
|
13
|
-
|
14
|
-
runner_definition do
|
11
|
+
runner_with :help, :subcommands do
|
15
12
|
desc 'Utilities for generic instances.'
|
16
13
|
pos_arg :instance_id
|
17
14
|
subcommands
|
@@ -20,7 +17,7 @@ module Avm
|
|
20
17
|
private
|
21
18
|
|
22
19
|
def instance_uncached
|
23
|
-
::Avm::Instances::Base.by_id(
|
20
|
+
::Avm::Instances::Base.by_id(parsed.instance_id)
|
24
21
|
end
|
25
22
|
end
|
26
23
|
end
|
@@ -2,16 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'avm/instances/entry_keys'
|
4
4
|
require 'eac_cli/core_ext'
|
5
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
6
5
|
|
7
6
|
module Avm
|
8
7
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class Instance
|
11
|
-
class Info
|
12
|
-
runner_with
|
13
|
-
|
14
|
-
runner_definition do
|
8
|
+
class Runner
|
9
|
+
class Instance
|
10
|
+
class Info
|
11
|
+
runner_with :help do
|
15
12
|
desc 'Show info about a instance.'
|
16
13
|
end
|
17
14
|
|
@@ -35,7 +32,7 @@ module Avm
|
|
35
32
|
end
|
36
33
|
|
37
34
|
def instance
|
38
|
-
|
35
|
+
runner_context.call(:instance)
|
39
36
|
end
|
40
37
|
end
|
41
38
|
end
|
@@ -4,7 +4,7 @@ require 'eac_launcher/instances/runner_helper'
|
|
4
4
|
|
5
5
|
module Avm
|
6
6
|
module Tools
|
7
|
-
class Runner
|
7
|
+
class Runner
|
8
8
|
class Launcher < ::EacRubyUtils::Console::DocoptRunner
|
9
9
|
class Instances < ::EacLauncher::Instances::RunnerHelper
|
10
10
|
DOC = <<~DOCOPT
|
@@ -5,7 +5,7 @@ require 'eac_launcher/instances/runner_helper'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
8
|
+
class Runner
|
9
9
|
class Launcher < ::EacRubyUtils::Console::DocoptRunner
|
10
10
|
class Projects < ::EacLauncher::Instances::RunnerHelper
|
11
11
|
DOC = <<~DOCOPT
|
@@ -4,7 +4,7 @@ require 'eac_launcher/instances/runner_helper'
|
|
4
4
|
|
5
5
|
module Avm
|
6
6
|
module Tools
|
7
|
-
class Runner
|
7
|
+
class Runner
|
8
8
|
class Launcher < ::EacRubyUtils::Console::DocoptRunner
|
9
9
|
class Publish < ::EacLauncher::Instances::RunnerHelper
|
10
10
|
DOC = <<~DOCOPT
|
@@ -1,17 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
3
|
require 'avm/local_projects/instance'
|
4
|
+
require 'eac_cli/core_ext'
|
6
5
|
|
7
6
|
module Avm
|
8
7
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
11
10
|
require_sub __FILE__
|
12
|
-
|
13
|
-
|
14
|
-
runner_definition do
|
11
|
+
runner_with :help, :subcommands do
|
15
12
|
desc 'Utilities for local projects.'
|
16
13
|
arg_opt '-C', '--path', 'Path to local project instance.'
|
17
14
|
subcommands
|
@@ -29,7 +26,7 @@ module Avm
|
|
29
26
|
end
|
30
27
|
|
31
28
|
def instance_path_uncached
|
32
|
-
(
|
29
|
+
(parsed.path || '.').to_pathname.expand_path
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
9
|
+
class Runner
|
10
|
+
class LocalProject
|
11
11
|
class EacWritingsBase0
|
12
12
|
require_sub __FILE__
|
13
13
|
enable_simple_cache
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
9
|
+
class Runner
|
10
|
+
class LocalProject
|
11
11
|
class EacWritingsBase0
|
12
12
|
class BuildChapters
|
13
13
|
runner_with :help do
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
9
|
+
class Runner
|
10
|
+
class LocalProject
|
11
11
|
class EacWritingsBase0
|
12
12
|
class BuildSingle
|
13
13
|
runner_with :help do
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
9
|
+
class Runner
|
10
|
+
class LocalProject
|
11
11
|
class EacWritingsBase0
|
12
12
|
class Info
|
13
13
|
runner_with :help do
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
10
|
class EacWritingsBase1
|
11
11
|
require_sub __FILE__
|
12
12
|
|
@@ -7,8 +7,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
10
|
-
class Runner
|
11
|
-
class LocalProject
|
10
|
+
class Runner
|
11
|
+
class LocalProject
|
12
12
|
class EacWritingsBase1
|
13
13
|
class Build
|
14
14
|
runner_with :help do
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/core_ext'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
10
|
class Info < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
include ::EacCli::DefaultRunner
|
12
12
|
|
@@ -7,8 +7,8 @@ require 'eac_ruby_utils/core_ext'
|
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
10
|
-
class Runner
|
11
|
-
class LocalProject
|
10
|
+
class Runner
|
11
|
+
class LocalProject
|
12
12
|
class Ruby < ::EacRubyUtils::Console::DocoptRunner
|
13
13
|
require_sub __FILE__
|
14
14
|
include ::EacCli::DefaultRunner
|
@@ -6,8 +6,8 @@ require 'eac_ruby_utils/core_ext'
|
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
9
|
+
class Runner
|
10
|
+
class LocalProject
|
11
11
|
class Ruby < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
class Bundler < ::EacRubyUtils::Console::DocoptRunner
|
13
13
|
require_sub __FILE__
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/console/docopt_runner'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
10
|
class Ruby < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
class Bundler < ::EacRubyUtils::Console::DocoptRunner
|
12
12
|
class GemfileLock < ::EacRubyUtils::Console::DocoptRunner
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/core_ext'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
10
|
class Test < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
include ::EacCli::DefaultRunner
|
12
12
|
|
@@ -5,8 +5,8 @@ require 'eac_ruby_utils/core_ext'
|
|
5
5
|
|
6
6
|
module Avm
|
7
7
|
module Tools
|
8
|
-
class Runner
|
9
|
-
class LocalProject
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
10
|
class Update < ::EacRubyUtils::Console::DocoptRunner
|
11
11
|
include ::EacCli::DefaultRunner
|
12
12
|
|
@@ -1,17 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/version'
|
4
|
-
require '
|
5
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'eac_cli/core_ext'
|
6
5
|
|
7
6
|
module Avm
|
8
7
|
module Tools
|
9
|
-
class Runner
|
10
|
-
class LocalProject
|
11
|
-
class VersionBump
|
12
|
-
|
13
|
-
|
14
|
-
runner_definition do
|
8
|
+
class Runner
|
9
|
+
class LocalProject
|
10
|
+
class VersionBump
|
11
|
+
runner_with :help do
|
15
12
|
desc 'Bump version of a local project.'
|
16
13
|
arg_opt '-n', '--new', 'Set new version.'
|
17
14
|
arg_opt '-s', '--segment', 'Increment de <segment>-th segment (Left-most is 0)'
|
@@ -29,7 +26,7 @@ module Avm
|
|
29
26
|
def run_version_changed
|
30
27
|
infom 'Version changed'
|
31
28
|
if confirm?
|
32
|
-
|
29
|
+
runner_context.call(:instance).run_job(:version_bump, target_version)
|
33
30
|
success 'Bumped'
|
34
31
|
else
|
35
32
|
fatal_error 'Bump unconfirmed'
|
@@ -41,23 +38,23 @@ module Avm
|
|
41
38
|
end
|
42
39
|
|
43
40
|
def start_banner
|
44
|
-
|
41
|
+
runner_context.call(:instance_banner)
|
45
42
|
infov 'Current version', current_version.if_present('-')
|
46
43
|
infov 'Target version', target_version.if_present('-')
|
47
44
|
end
|
48
45
|
|
49
46
|
def confirm?
|
50
|
-
|
47
|
+
parsed.yes? || request_input('Confirm version bump?', bool: true)
|
51
48
|
end
|
52
49
|
|
53
50
|
def current_version_uncached
|
54
|
-
|
51
|
+
runner_context.call(:instance).if_respond('version')
|
55
52
|
end
|
56
53
|
|
57
54
|
def target_version_uncached
|
58
55
|
r = current_version
|
59
56
|
%w[new segment major minor patch].each do |option|
|
60
|
-
option_value =
|
57
|
+
option_value = parsed[option]
|
61
58
|
next if option_value.blank?
|
62
59
|
|
63
60
|
r = send("target_version_from_#{option}", r, option_value)
|