avm-tools 0.66.0 → 0.69.2
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_base0/apache_host.rb +17 -0
- data/lib/avm/eac_rails_base0/deploy.rb +50 -0
- data/lib/avm/eac_rails_base0/instance.rb +14 -0
- data/lib/avm/eac_redmine_base0/deploy.rb +2 -2
- data/lib/avm/eac_redmine_base0/instance.rb +2 -2
- data/lib/avm/eac_webapp_base0/apache_host.rb +103 -0
- data/lib/avm/eac_webapp_base0/deploy.rb +102 -0
- data/lib/avm/eac_webapp_base0/deploy/appended_directories.rb +25 -0
- data/lib/avm/eac_webapp_base0/deploy/file_unit.rb +41 -0
- data/lib/avm/eac_webapp_base0/deploy/git_info.rb +49 -0
- data/lib/avm/eac_webapp_base0/deploy/version.rb +20 -0
- data/lib/avm/eac_webapp_base0/instance.rb +50 -0
- data/lib/avm/eac_webapp_base0/runner/apache_host.rb +39 -0
- data/lib/avm/eac_webapp_base0/runner/data.rb +25 -0
- data/lib/avm/eac_webapp_base0/runner/data/dump.rb +69 -0
- data/lib/avm/eac_webapp_base0/runner/data/load.rb +66 -0
- data/lib/avm/eac_webapp_base0/runner/deploy.rb +59 -0
- data/lib/avm/git/issue/complete/_git_subrepos.rb +1 -0
- data/lib/avm/instances/configuration/_locale.rb +16 -0
- data/lib/avm/local_projects/instance.rb +20 -1
- data/lib/avm/patches/i18n.rb +22 -0
- data/lib/avm/patches/object/i18n.rb +17 -0
- data/lib/avm/projects/stereotype.rb +1 -0
- data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +2 -2
- data/lib/avm/projects/stereotypes/rails_application.rb +2 -0
- data/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +18 -0
- data/lib/avm/projects/stereotypes/rails_application/update.rb +14 -0
- data/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb +9 -0
- data/lib/avm/projects/stereotypes/ruby_gem/version_bump.rb +61 -0
- data/lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb +2 -2
- data/lib/avm/stereotypes/eac_wordpress_base0/deploy.rb +2 -2
- data/lib/avm/stereotypes/eac_wordpress_base0/instance.rb +2 -2
- data/lib/avm/tools/runner/eac_rails_base0.rb +2 -2
- data/lib/avm/tools/runner/eac_rails_base0/apache_host.rb +3 -26
- data/lib/avm/tools/runner/eac_rails_base0/data.rb +2 -2
- data/lib/avm/tools/runner/eac_rails_base0/deploy.rb +3 -3
- data/lib/avm/tools/runner/eac_redmine_base0/data.rb +1 -1
- data/lib/avm/tools/runner/eac_redmine_base0/data/dump.rb +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/deploy.rb +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/project_rename.rb +1 -0
- data/lib/avm/tools/runner/eac_wordpress_base0/apache_host.rb +3 -25
- data/lib/avm/tools/runner/eac_wordpress_base0/data.rb +2 -2
- data/lib/avm/tools/runner/eac_wordpress_base0/deploy.rb +2 -2
- data/lib/avm/tools/runner/local_project/update.rb +1 -2
- data/lib/avm/tools/runner/local_project/version_bump.rb +89 -0
- data/lib/avm/tools/version.rb +1 -1
- data/lib/avm/version.rb +45 -0
- data/lib/eac_launcher/git/sub_warp_base.rb +1 -1
- data/lib/eac_launcher/publish/base.rb +1 -1
- data/template/avm/{stereotypes/eac_rails_base0 → eac_rails_base0}/deploy/config/database.yml.template +0 -0
- data/template/avm/{stereotypes/eac_webapp_base0 → eac_webapp_base0}/apache_host/no_ssl.conf +0 -0
- data/template/avm/self/docker_image/Dockerfile +1 -1
- data/vendor/eac_cli/Gemfile +5 -0
- data/vendor/eac_cli/eac_cli.gemspec +18 -0
- data/vendor/eac_cli/lib/eac_cli.rb +7 -0
- data/vendor/eac_cli/lib/eac_cli/default_runner.rb +14 -0
- data/vendor/eac_cli/lib/eac_cli/definition.rb +72 -0
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +27 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +77 -0
- data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +45 -0
- data/vendor/eac_cli/lib/eac_cli/parser.rb +14 -0
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +56 -0
- data/vendor/eac_cli/lib/eac_cli/parser/error.rb +15 -0
- data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +105 -0
- data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +21 -0
- data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +49 -0
- data/vendor/eac_cli/lib/eac_cli/runner.rb +87 -0
- data/vendor/eac_cli/lib/eac_cli/runner/context.rb +18 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with.rb +9 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +19 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/version.rb +5 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +70 -0
- data/vendor/eac_cli/spec/rubocop_spec.rb +7 -0
- data/vendor/eac_cli/spec/spec_helper.rb +100 -0
- data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +3 -3
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +5 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +15 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +41 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +5 -34
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +42 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +25 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +14 -0
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +7 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +4 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb +6 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb +8 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +18 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +3 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +22 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +6 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +53 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +15 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +46 -0
- metadata +65 -19
- data/lib/avm/local_projects/jobs/update.rb +0 -29
- data/lib/avm/stereotypes/eac_rails_base0/apache_host.rb +0 -19
- data/lib/avm/stereotypes/eac_rails_base0/deploy.rb +0 -52
- data/lib/avm/stereotypes/eac_rails_base0/instance.rb +0 -16
- data/lib/avm/stereotypes/eac_webapp_base0/apache_host.rb +0 -97
- data/lib/avm/stereotypes/eac_webapp_base0/deploy.rb +0 -104
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/appended_directories.rb +0 -27
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/file_unit.rb +0 -43
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/git_info.rb +0 -51
- data/lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb +0 -22
- data/lib/avm/stereotypes/eac_webapp_base0/instance.rb +0 -52
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data.rb +0 -27
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data/dump.rb +0 -71
- data/lib/avm/stereotypes/eac_webapp_base0/runner/data/load.rb +0 -68
- data/lib/avm/stereotypes/eac_webapp_base0/runner/deploy.rb +0 -61
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacRubyUtils
|
4
|
+
class Inflector
|
5
|
+
class << self
|
6
|
+
VARIABLE_NAME_PATTERN = /[_a-z][_a-z0-9]*/i.freeze
|
7
|
+
|
8
|
+
def variableize(string)
|
9
|
+
r = string.gsub(/[^_a-z0-9]/i, '_').gsub(/_+/, '_').gsub(/_\z/, '').gsub(/\A_/, '').downcase
|
10
|
+
m = VARIABLE_NAME_PATTERN.match(r)
|
11
|
+
return r if m
|
12
|
+
|
13
|
+
raise ::ArgumentError, "Invalid variable name \"#{r}\" was generated " \
|
14
|
+
"from string \"#{string}\""
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_ruby_utils/inflector'
|
4
|
+
|
3
5
|
module EacRubyUtils
|
4
6
|
module Listable
|
5
7
|
class Value
|
@@ -16,8 +18,7 @@ module EacRubyUtils
|
|
16
18
|
end
|
17
19
|
|
18
20
|
def constant_name
|
19
|
-
"#{@list.item}_#{@key}"
|
20
|
-
.gsub(/(?:\A_|_\z)/, '').upcase
|
21
|
+
::EacRubyUtils::Inflector.variableize("#{@list.item}_#{@key}").upcase
|
21
22
|
end
|
22
23
|
|
23
24
|
def label
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/core_ext/object/blank'
|
4
|
+
|
5
|
+
class Object
|
6
|
+
# @return +block.call(self.method_name)+ if +self+ responds to +method_name+, +default_value+
|
7
|
+
# otherwise.
|
8
|
+
def if_respond(method_name, default_value = nil)
|
9
|
+
return default_value unless respond_to?(method_name)
|
10
|
+
|
11
|
+
value = send(method_name)
|
12
|
+
|
13
|
+
block_given? ? yield(value) : value
|
14
|
+
end
|
15
|
+
|
16
|
+
# @return +yield+ if +self+ is blank.
|
17
|
+
def if_blank
|
18
|
+
return yield if blank? && block_given?
|
19
|
+
|
20
|
+
self
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/hash_with_indifferent_access'
|
4
|
+
require 'active_support/core_ext/object/blank'
|
5
|
+
|
6
|
+
module EacRubyUtils
|
7
|
+
class Struct
|
8
|
+
def initialize(initial_data = {})
|
9
|
+
self.data = ::ActiveSupport::HashWithIndifferentAccess.new(initial_data)
|
10
|
+
end
|
11
|
+
|
12
|
+
def [](key)
|
13
|
+
key, bool = parse_key(key)
|
14
|
+
bool ? self[key].present? : data[key]
|
15
|
+
end
|
16
|
+
|
17
|
+
def fetch(key)
|
18
|
+
key, bool = parse_key(key)
|
19
|
+
bool ? fetch(key).present? : data.fetch(key)
|
20
|
+
end
|
21
|
+
|
22
|
+
def method_missing(method_name, *arguments, &block)
|
23
|
+
property_method?(method_name) ? fetch(method_name) : super
|
24
|
+
end
|
25
|
+
|
26
|
+
def respond_to_missing?(method_name, include_private = false)
|
27
|
+
property_method?(method_name) || super
|
28
|
+
end
|
29
|
+
|
30
|
+
def to_h
|
31
|
+
data.dup
|
32
|
+
end
|
33
|
+
|
34
|
+
delegate :to_s, to: :data
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
attr_accessor :data
|
39
|
+
|
40
|
+
def parse_key(key)
|
41
|
+
m = /\A(.+)\?\z/.match(key.to_s)
|
42
|
+
[(m ? m[1] : key.to_s).to_sym, m ? true : false]
|
43
|
+
end
|
44
|
+
|
45
|
+
def property_method?(key)
|
46
|
+
property_methods.include?(key.to_sym)
|
47
|
+
end
|
48
|
+
|
49
|
+
def property_methods
|
50
|
+
data.keys.flat_map { |k| [k.to_sym, "#{k}?".to_sym] }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/inflector'
|
4
|
+
|
5
|
+
RSpec.describe ::EacRubyUtils::Inflector do
|
6
|
+
describe '#variableize' do
|
7
|
+
{
|
8
|
+
'_A_variableName' => 'a_variablename'
|
9
|
+
}.each do |source, expected|
|
10
|
+
context "when source is \"#{source}\"" do
|
11
|
+
it { expect(described_class.variableize(source)).to eq(expected) }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/struct'
|
4
|
+
|
5
|
+
RSpec.describe ::EacRubyUtils::Struct do
|
6
|
+
let(:instance) { described_class.new(a: 1, b: '') }
|
7
|
+
|
8
|
+
describe '#[]' do
|
9
|
+
it { expect(instance[:a]).to eq(1) }
|
10
|
+
it { expect(instance['a']).to eq(1) }
|
11
|
+
it { expect(instance[:a?]).to eq(true) }
|
12
|
+
it { expect(instance['a?']).to eq(true) }
|
13
|
+
it { expect(instance[:b]).to eq('') }
|
14
|
+
it { expect(instance['b']).to eq('') }
|
15
|
+
it { expect(instance[:b?]).to eq(false) }
|
16
|
+
it { expect(instance['b?']).to eq(false) }
|
17
|
+
it { expect(instance[:c]).to eq(nil) }
|
18
|
+
it { expect(instance['c']).to eq(nil) }
|
19
|
+
it { expect(instance[:c?]).to eq(false) }
|
20
|
+
it { expect(instance['c?']).to eq(false) }
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#fetch' do
|
24
|
+
it { expect(instance.fetch(:a)).to eq(1) }
|
25
|
+
it { expect(instance.fetch('a')).to eq(1) }
|
26
|
+
it { expect(instance.fetch(:a?)).to eq(true) }
|
27
|
+
it { expect(instance.fetch('a?')).to eq(true) }
|
28
|
+
it { expect(instance.fetch(:b)).to eq('') }
|
29
|
+
it { expect(instance.fetch('b')).to eq('') }
|
30
|
+
it { expect(instance.fetch(:b?)).to eq(false) }
|
31
|
+
it { expect(instance.fetch('b?')).to eq(false) }
|
32
|
+
it { expect { instance.fetch(:c) }.to raise_error(::KeyError) }
|
33
|
+
it { expect { instance.fetch('c') }.to raise_error(::KeyError) }
|
34
|
+
it { expect { instance.fetch(:c?) }.to raise_error(::KeyError) }
|
35
|
+
it { expect { instance.fetch('c?') }.to raise_error(::KeyError) }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe '#property_method' do
|
39
|
+
it { expect(instance.a).to eq(1) }
|
40
|
+
it { expect(instance.a?).to eq(true) }
|
41
|
+
it { expect(instance.b).to eq('') }
|
42
|
+
it { expect(instance.b?).to eq(false) }
|
43
|
+
it { expect { instance.c }.to raise_error(::NoMethodError) }
|
44
|
+
it { expect { instance.c? }.to raise_error(::NoMethodError) }
|
45
|
+
end
|
46
|
+
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.
|
4
|
+
version: 0.69.2
|
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-09-
|
11
|
+
date: 2020-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -290,10 +290,25 @@ files:
|
|
290
290
|
- lib/avm/docker/image.rb
|
291
291
|
- lib/avm/docker/registry.rb
|
292
292
|
- lib/avm/docker/runner.rb
|
293
|
+
- lib/avm/eac_rails_base0/apache_host.rb
|
294
|
+
- lib/avm/eac_rails_base0/deploy.rb
|
295
|
+
- lib/avm/eac_rails_base0/instance.rb
|
293
296
|
- lib/avm/eac_redmine_base0/core_update.rb
|
294
297
|
- lib/avm/eac_redmine_base0/data_unit.rb
|
295
298
|
- lib/avm/eac_redmine_base0/deploy.rb
|
296
299
|
- lib/avm/eac_redmine_base0/instance.rb
|
300
|
+
- lib/avm/eac_webapp_base0/apache_host.rb
|
301
|
+
- lib/avm/eac_webapp_base0/deploy.rb
|
302
|
+
- lib/avm/eac_webapp_base0/deploy/appended_directories.rb
|
303
|
+
- lib/avm/eac_webapp_base0/deploy/file_unit.rb
|
304
|
+
- lib/avm/eac_webapp_base0/deploy/git_info.rb
|
305
|
+
- lib/avm/eac_webapp_base0/deploy/version.rb
|
306
|
+
- lib/avm/eac_webapp_base0/instance.rb
|
307
|
+
- lib/avm/eac_webapp_base0/runner/apache_host.rb
|
308
|
+
- lib/avm/eac_webapp_base0/runner/data.rb
|
309
|
+
- lib/avm/eac_webapp_base0/runner/data/dump.rb
|
310
|
+
- lib/avm/eac_webapp_base0/runner/data/load.rb
|
311
|
+
- lib/avm/eac_webapp_base0/runner/deploy.rb
|
297
312
|
- lib/avm/executables.rb
|
298
313
|
- lib/avm/files.rb
|
299
314
|
- lib/avm/files/formatter.rb
|
@@ -361,6 +376,7 @@ files:
|
|
361
376
|
- lib/avm/instances/base/auto_values/web.rb
|
362
377
|
- lib/avm/instances/base/dockerizable.rb
|
363
378
|
- lib/avm/instances/configuration.rb
|
379
|
+
- lib/avm/instances/configuration/_locale.rb
|
364
380
|
- lib/avm/instances/configuration/_rubocop.rb
|
365
381
|
- lib/avm/instances/configuration/_tests.rb
|
366
382
|
- lib/avm/instances/entries.rb
|
@@ -376,9 +392,10 @@ files:
|
|
376
392
|
- lib/avm/launcher/instances/settings.rb
|
377
393
|
- lib/avm/local_projects.rb
|
378
394
|
- lib/avm/local_projects/instance.rb
|
379
|
-
- lib/avm/local_projects/jobs/update.rb
|
380
395
|
- lib/avm/patches.rb
|
381
396
|
- lib/avm/patches/eac_ruby_gems_utils/gem.rb
|
397
|
+
- lib/avm/patches/i18n.rb
|
398
|
+
- lib/avm/patches/object/i18n.rb
|
382
399
|
- lib/avm/patches/object/template.rb
|
383
400
|
- lib/avm/path_string.rb
|
384
401
|
- lib/avm/projects.rb
|
@@ -395,11 +412,14 @@ files:
|
|
395
412
|
- lib/avm/projects/stereotypes/git_subtree/publish.rb
|
396
413
|
- lib/avm/projects/stereotypes/git_subtree/warp.rb
|
397
414
|
- lib/avm/projects/stereotypes/rails_application.rb
|
415
|
+
- lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb
|
416
|
+
- lib/avm/projects/stereotypes/rails_application/update.rb
|
398
417
|
- lib/avm/projects/stereotypes/redmine_plugin.rb
|
399
418
|
- lib/avm/projects/stereotypes/ruby_gem.rb
|
400
419
|
- lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
|
401
420
|
- lib/avm/projects/stereotypes/ruby_gem/publish.rb
|
402
421
|
- lib/avm/projects/stereotypes/ruby_gem/update.rb
|
422
|
+
- lib/avm/projects/stereotypes/ruby_gem/version_bump.rb
|
403
423
|
- lib/avm/rails.rb
|
404
424
|
- lib/avm/rails/runners.rb
|
405
425
|
- lib/avm/rails/runners/bundle.rb
|
@@ -418,26 +438,12 @@ files:
|
|
418
438
|
- lib/avm/self/instance/entry_keys.rb
|
419
439
|
- lib/avm/stereotypes.rb
|
420
440
|
- lib/avm/stereotypes/eac_rails_base0.rb
|
421
|
-
- lib/avm/stereotypes/eac_rails_base0/apache_host.rb
|
422
|
-
- lib/avm/stereotypes/eac_rails_base0/deploy.rb
|
423
|
-
- lib/avm/stereotypes/eac_rails_base0/instance.rb
|
424
441
|
- lib/avm/stereotypes/eac_redmine_base0.rb
|
425
442
|
- lib/avm/stereotypes/eac_ubuntu_base0.rb
|
426
443
|
- lib/avm/stereotypes/eac_ubuntu_base0/apache.rb
|
427
444
|
- lib/avm/stereotypes/eac_ubuntu_base0/apache/site.rb
|
428
445
|
- lib/avm/stereotypes/eac_ubuntu_base0/docker_image.rb
|
429
446
|
- lib/avm/stereotypes/eac_webapp_base0.rb
|
430
|
-
- lib/avm/stereotypes/eac_webapp_base0/apache_host.rb
|
431
|
-
- lib/avm/stereotypes/eac_webapp_base0/deploy.rb
|
432
|
-
- lib/avm/stereotypes/eac_webapp_base0/deploy/appended_directories.rb
|
433
|
-
- lib/avm/stereotypes/eac_webapp_base0/deploy/file_unit.rb
|
434
|
-
- lib/avm/stereotypes/eac_webapp_base0/deploy/git_info.rb
|
435
|
-
- lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
|
436
|
-
- lib/avm/stereotypes/eac_webapp_base0/instance.rb
|
437
|
-
- lib/avm/stereotypes/eac_webapp_base0/runner/data.rb
|
438
|
-
- lib/avm/stereotypes/eac_webapp_base0/runner/data/dump.rb
|
439
|
-
- lib/avm/stereotypes/eac_webapp_base0/runner/data/load.rb
|
440
|
-
- lib/avm/stereotypes/eac_webapp_base0/runner/deploy.rb
|
441
447
|
- lib/avm/stereotypes/eac_wordpress_base0/apache_host.rb
|
442
448
|
- lib/avm/stereotypes/eac_wordpress_base0/deploy.rb
|
443
449
|
- lib/avm/stereotypes/eac_wordpress_base0/instance.rb
|
@@ -494,6 +500,7 @@ files:
|
|
494
500
|
- lib/avm/tools/runner/local_project/ruby/bundler/gemfile_lock.rb
|
495
501
|
- lib/avm/tools/runner/local_project/test.rb
|
496
502
|
- lib/avm/tools/runner/local_project/update.rb
|
503
|
+
- lib/avm/tools/runner/local_project/version_bump.rb
|
497
504
|
- lib/avm/tools/runner/ruby.rb
|
498
505
|
- lib/avm/tools/runner/ruby/gems.rb
|
499
506
|
- lib/avm/tools/runner/ruby/gems/generate.rb
|
@@ -501,6 +508,7 @@ files:
|
|
501
508
|
- lib/avm/tools/runner/self.rb
|
502
509
|
- lib/avm/tools/runner/self/docker.rb
|
503
510
|
- lib/avm/tools/version.rb
|
511
|
+
- lib/avm/version.rb
|
504
512
|
- lib/eac_launcher.rb
|
505
513
|
- lib/eac_launcher/context.rb
|
506
514
|
- lib/eac_launcher/context/instance_discovery.rb
|
@@ -535,8 +543,10 @@ files:
|
|
535
543
|
- lib/eac_launcher/vendor.rb
|
536
544
|
- lib/eac_launcher/vendor/github.rb
|
537
545
|
- lib/eac_launcher/version.rb
|
546
|
+
- template/avm/eac_rails_base0/deploy/config/database.yml.template
|
538
547
|
- template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
539
548
|
- template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
549
|
+
- template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
540
550
|
- template/avm/ruby/gems/generator/gemspec.template
|
541
551
|
- template/avm/ruby/gems/generator/root_lib.template
|
542
552
|
- template/avm/ruby/gems/generator/static/Gemfile
|
@@ -545,10 +555,34 @@ files:
|
|
545
555
|
- template/avm/ruby/gems/generator/version.template
|
546
556
|
- template/avm/self/docker_image/Dockerfile
|
547
557
|
- template/avm/self/docker_image/entrypoint.sh
|
548
|
-
- template/avm/stereotypes/eac_rails_base0/deploy/config/database.yml.template
|
549
558
|
- template/avm/stereotypes/eac_ubuntu_base0/docker_image/Dockerfile
|
550
|
-
- template/avm/stereotypes/eac_webapp_base0/apache_host/no_ssl.conf
|
551
559
|
- template/avm/stereotypes/eac_wordpress_base0/deploy/wp-config.php.template
|
560
|
+
- vendor/eac_cli/Gemfile
|
561
|
+
- vendor/eac_cli/eac_cli.gemspec
|
562
|
+
- vendor/eac_cli/lib/eac_cli.rb
|
563
|
+
- vendor/eac_cli/lib/eac_cli/default_runner.rb
|
564
|
+
- vendor/eac_cli/lib/eac_cli/definition.rb
|
565
|
+
- vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
|
566
|
+
- vendor/eac_cli/lib/eac_cli/definition/base_option.rb
|
567
|
+
- vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
|
568
|
+
- vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
|
569
|
+
- vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb
|
570
|
+
- vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb
|
571
|
+
- vendor/eac_cli/lib/eac_cli/parser.rb
|
572
|
+
- vendor/eac_cli/lib/eac_cli/parser/collector.rb
|
573
|
+
- vendor/eac_cli/lib/eac_cli/parser/error.rb
|
574
|
+
- vendor/eac_cli/lib/eac_cli/parser/options_collection.rb
|
575
|
+
- vendor/eac_cli/lib/eac_cli/parser/parse_result.rb
|
576
|
+
- vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb
|
577
|
+
- vendor/eac_cli/lib/eac_cli/runner.rb
|
578
|
+
- vendor/eac_cli/lib/eac_cli/runner/context.rb
|
579
|
+
- vendor/eac_cli/lib/eac_cli/runner_with.rb
|
580
|
+
- vendor/eac_cli/lib/eac_cli/runner_with/help.rb
|
581
|
+
- vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
|
582
|
+
- vendor/eac_cli/lib/eac_cli/version.rb
|
583
|
+
- vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
|
584
|
+
- vendor/eac_cli/spec/rubocop_spec.rb
|
585
|
+
- vendor/eac_cli/spec/spec_helper.rb
|
552
586
|
- vendor/eac_docker/Gemfile
|
553
587
|
- vendor/eac_docker/eac_docker.gemspec
|
554
588
|
- vendor/eac_docker/lib/eac_docker.rb
|
@@ -785,12 +819,17 @@ files:
|
|
785
819
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils.rb
|
786
820
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb
|
787
821
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb
|
822
|
+
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb
|
788
823
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests.rb
|
789
824
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb
|
790
825
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/minitest.rb
|
791
826
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb
|
827
|
+
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb
|
828
|
+
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
|
792
829
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb
|
793
830
|
- vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb
|
831
|
+
- vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
|
832
|
+
- vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
|
794
833
|
- vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb
|
795
834
|
- vendor/eac_ruby_gems_utils/spec/rubocop_check_spec.rb
|
796
835
|
- vendor/eac_ruby_gems_utils/spec/spec_helper.rb
|
@@ -859,6 +898,7 @@ files:
|
|
859
898
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb
|
860
899
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb
|
861
900
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb
|
901
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb
|
862
902
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable.rb
|
863
903
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb
|
864
904
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb
|
@@ -890,12 +930,15 @@ files:
|
|
890
930
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
|
891
931
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
|
892
932
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
|
933
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
|
893
934
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
|
894
935
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
|
895
936
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
|
896
937
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
897
938
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
|
898
939
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
|
940
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
|
941
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
|
899
942
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
|
900
943
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
|
901
944
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb
|
@@ -909,6 +952,7 @@ files:
|
|
909
952
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
|
910
953
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
|
911
954
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
|
955
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
|
912
956
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates.rb
|
913
957
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/directory.rb
|
914
958
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/file.rb
|
@@ -935,6 +979,7 @@ files:
|
|
935
979
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
|
936
980
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/temp_spec.rb
|
937
981
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
|
982
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb
|
938
983
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
|
939
984
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
|
940
985
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
|
@@ -954,6 +999,7 @@ files:
|
|
954
999
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb
|
955
1000
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
|
956
1001
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
|
1002
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb
|
957
1003
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec.rb
|
958
1004
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/expected_content
|
959
1005
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/source.template
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module LocalProjects
|
7
|
-
module Jobs
|
8
|
-
class Update
|
9
|
-
enable_console_speaker
|
10
|
-
common_constructor :instance
|
11
|
-
|
12
|
-
def run
|
13
|
-
instance.stereotypes.each { |stereotype| run_stereotype(stereotype) }
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
def run_stereotype(stereotype)
|
19
|
-
if stereotype.update_class.present?
|
20
|
-
puts stereotype.label + ': update class found. Running...'
|
21
|
-
stereotype.update_class.new(instance).run
|
22
|
-
else
|
23
|
-
puts stereotype.label + ': update class not found'
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|