avm-tools 0.58.1 → 0.62.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/cached_download.rb +39 -0
- data/lib/avm/eac_redmine_base0/core_update.rb +110 -0
- data/lib/avm/eac_redmine_base0/data_unit.rb +27 -0
- data/lib/avm/eac_redmine_base0/deploy.rb +36 -0
- data/lib/avm/eac_redmine_base0/instance.rb +38 -0
- data/lib/avm/local_projects.rb +9 -0
- data/lib/avm/local_projects/instance.rb +35 -0
- data/lib/avm/local_projects/jobs/update.rb +29 -0
- data/lib/avm/projects.rb +9 -0
- data/lib/avm/projects/stereotype.rb +62 -0
- data/lib/avm/projects/stereotypes.rb +20 -0
- data/lib/avm/projects/stereotypes/git.rb +25 -0
- data/lib/avm/projects/stereotypes/git/local_project_mixin.rb +19 -0
- data/lib/avm/projects/stereotypes/git/publish.rb +15 -0
- data/lib/avm/projects/stereotypes/git/warp.rb +27 -0
- data/lib/avm/projects/stereotypes/git_subrepo.rb +34 -0
- data/lib/avm/projects/stereotypes/git_subrepo/publish.rb +14 -0
- data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +87 -0
- data/lib/avm/projects/stereotypes/git_subtree.rb +51 -0
- data/lib/avm/projects/stereotypes/git_subtree/publish.rb +12 -0
- data/lib/avm/projects/stereotypes/git_subtree/warp.rb +29 -0
- data/lib/avm/projects/stereotypes/rails_application.rb +23 -0
- data/lib/avm/projects/stereotypes/redmine_plugin.rb +23 -0
- data/lib/avm/projects/stereotypes/ruby_gem.rb +30 -0
- data/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb +19 -0
- data/lib/avm/projects/stereotypes/ruby_gem/publish.rb +129 -0
- data/lib/avm/projects/stereotypes/ruby_gem/update.rb +59 -0
- data/lib/avm/stereotypes/eac_webapp_base0/runner/deploy.rb +3 -1
- data/lib/avm/sync.rb +94 -0
- data/lib/avm/tools/runner/eac_redmine_base0.rb +2 -2
- data/lib/avm/tools/runner/eac_redmine_base0/core_update.rb +67 -0
- data/lib/avm/tools/runner/eac_redmine_base0/deploy.rb +1 -1
- data/lib/avm/tools/runner/git/issue.rb +43 -4
- data/lib/avm/tools/runner/launcher.rb +10 -2
- data/lib/avm/tools/runner/launcher/instances.rb +45 -0
- data/lib/avm/tools/runner/launcher/projects.rb +50 -0
- data/lib/avm/tools/runner/launcher/publish.rb +65 -0
- data/lib/avm/tools/runner/local_project.rb +32 -0
- data/lib/avm/tools/runner/local_project/info.rb +25 -0
- data/lib/avm/tools/runner/local_project/update.rb +26 -0
- data/lib/avm/tools/version.rb +1 -1
- data/lib/eac_launcher.rb +1 -2
- data/lib/eac_launcher/context/instance_manager.rb +1 -0
- data/lib/eac_launcher/git/base/dirty_files.rb +5 -14
- data/lib/eac_launcher/git/publish_base.rb +1 -0
- data/lib/eac_launcher/git/sub_warp_base.rb +1 -1
- data/lib/eac_launcher/git/warp_base.rb +2 -2
- data/lib/eac_launcher/instances/base.rb +2 -2
- data/lib/eac_launcher/instances/runner_helper.rb +1 -1
- data/lib/eac_launcher/paths/logical.rb +2 -2
- data/template/avm/{stereotypes/eac_redmine_base0 → eac_redmine_base0}/deploy/config/install.sh.template +0 -0
- data/template/avm/{stereotypes/eac_redmine_base0 → eac_redmine_base0}/deploy/config/secrets.yml +0 -0
- data/vendor/eac_git/lib/eac_git/local.rb +1 -1
- data/vendor/eac_git/lib/eac_git/local/dirty_files.rb +38 -0
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- 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/envs/ssh_env/identity_file.rb +2 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +2 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +2 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +5 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +8 -8
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +41 -27
- data/lib/avm/stereotypes/eac_redmine_base0/data_unit.rb +0 -29
- data/lib/avm/stereotypes/eac_redmine_base0/deploy.rb +0 -38
- data/lib/avm/stereotypes/eac_redmine_base0/instance.rb +0 -40
- data/lib/eac_launcher/runner.rb +0 -21
- data/lib/eac_launcher/runner/instances.rb +0 -41
- data/lib/eac_launcher/runner/projects.rb +0 -46
- data/lib/eac_launcher/runner/publish.rb +0 -59
- data/lib/eac_launcher/stereotype.rb +0 -52
- data/lib/eac_launcher/stereotypes.rb +0 -14
- data/lib/eac_launcher/stereotypes/git.rb +0 -21
- data/lib/eac_launcher/stereotypes/git/publish.rb +0 -13
- data/lib/eac_launcher/stereotypes/git/warp.rb +0 -25
- data/lib/eac_launcher/stereotypes/git_subrepo.rb +0 -30
- data/lib/eac_launcher/stereotypes/git_subrepo/publish.rb +0 -12
- data/lib/eac_launcher/stereotypes/git_subrepo/warp.rb +0 -85
- data/lib/eac_launcher/stereotypes/git_subtree.rb +0 -47
- data/lib/eac_launcher/stereotypes/git_subtree/publish.rb +0 -10
- data/lib/eac_launcher/stereotypes/git_subtree/warp.rb +0 -27
- data/lib/eac_launcher/stereotypes/rails.rb +0 -21
- data/lib/eac_launcher/stereotypes/redmine_plugin.rb +0 -21
- data/lib/eac_launcher/stereotypes/ruby_gem.rb +0 -27
- data/lib/eac_launcher/stereotypes/ruby_gem/publish.rb +0 -127
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_launcher/instances/runner_helper'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Tools
|
7
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
8
|
+
class Launcher < ::EacRubyUtils::Console::DocoptRunner
|
9
|
+
class Publish < ::EacLauncher::Instances::RunnerHelper
|
10
|
+
DOC = <<~DOCOPT
|
11
|
+
Publica projetos ou instâncias.
|
12
|
+
|
13
|
+
Usage:
|
14
|
+
__PROGRAM__ [options] [<instance_path>...]
|
15
|
+
__PROGRAM__ -h | --help
|
16
|
+
|
17
|
+
Options:
|
18
|
+
-h --help Show this screen.
|
19
|
+
--new Publish projects not published before.
|
20
|
+
-s --stereotype=<st> Publish only for stereotype <stereotype>.
|
21
|
+
--all Publish all instances.
|
22
|
+
-d --dry-run "Dry run" publishing.
|
23
|
+
--pending Publish only pending.
|
24
|
+
--recache Rewrite instances cache.
|
25
|
+
--run Confirm publishing.
|
26
|
+
|
27
|
+
DOCOPT
|
28
|
+
|
29
|
+
def run
|
30
|
+
::EacLauncher::Context.current.recache = options['--recache']
|
31
|
+
build_publish_options
|
32
|
+
instances.each do |i|
|
33
|
+
next unless i.options.publishable?
|
34
|
+
|
35
|
+
i.send(instance_method)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def dry_run?
|
42
|
+
options.fetch('--dry-run')
|
43
|
+
end
|
44
|
+
|
45
|
+
def instance_method
|
46
|
+
run? || dry_run? ? 'publish_run' : 'publish_check'
|
47
|
+
end
|
48
|
+
|
49
|
+
def build_publish_options
|
50
|
+
::EacLauncher::Context.current.publish_options = publish_options
|
51
|
+
end
|
52
|
+
|
53
|
+
def publish_options
|
54
|
+
{ new: options.fetch('--new'), stereotype: options.fetch('--stereotype'),
|
55
|
+
confirm: run? }
|
56
|
+
end
|
57
|
+
|
58
|
+
def run?
|
59
|
+
options.fetch('--run') && !dry_run?
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
require 'avm/local_projects/instance'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module Tools
|
9
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
10
|
+
class LocalProject < ::EacRubyUtils::Console::DocoptRunner
|
11
|
+
require_sub __FILE__
|
12
|
+
include ::EacCli::DefaultRunner
|
13
|
+
|
14
|
+
runner_definition do
|
15
|
+
desc 'Utilities for local projects.'
|
16
|
+
arg_opt '-C', '--path', 'Path to local project instance.'
|
17
|
+
subcommands
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def instance_uncached
|
23
|
+
::Avm::LocalProjects::Instance.new(instance_path)
|
24
|
+
end
|
25
|
+
|
26
|
+
def instance_path_uncached
|
27
|
+
(options.fetch('--path') || '.').to_pathname.expand_path
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/console/docopt_runner'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Tools
|
8
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
9
|
+
class LocalProject < ::EacRubyUtils::Console::DocoptRunner
|
10
|
+
class Info < ::EacRubyUtils::Console::DocoptRunner
|
11
|
+
include ::EacCli::DefaultRunner
|
12
|
+
|
13
|
+
runner_definition do
|
14
|
+
desc 'Show information about local project instance.'
|
15
|
+
end
|
16
|
+
|
17
|
+
def run
|
18
|
+
infov 'Path', context(:instance).path
|
19
|
+
infov 'Stereotypes', context(:instance).stereotypes.map(&:label).join(', ')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/local_projects/jobs/update'
|
4
|
+
require 'eac_ruby_utils/console/docopt_runner'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module Tools
|
9
|
+
class Runner < ::EacRubyUtils::Console::DocoptRunner
|
10
|
+
class LocalProject < ::EacRubyUtils::Console::DocoptRunner
|
11
|
+
class Update < ::EacRubyUtils::Console::DocoptRunner
|
12
|
+
include ::EacCli::DefaultRunner
|
13
|
+
|
14
|
+
runner_definition do
|
15
|
+
desc 'Update local project.'
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
infov 'Path', context(:instance).path
|
20
|
+
::Avm::LocalProjects::Jobs::Update.new(context(:instance)).run
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/avm/tools/version.rb
CHANGED
data/lib/eac_launcher.rb
CHANGED
@@ -4,11 +4,10 @@ module EacLauncher
|
|
4
4
|
require 'eac_launcher/context'
|
5
5
|
require 'eac_launcher/paths'
|
6
6
|
require 'eac_launcher/project'
|
7
|
-
require '
|
7
|
+
require 'avm/projects/stereotype'
|
8
8
|
require 'eac_launcher/git'
|
9
9
|
require 'eac_launcher/instances'
|
10
10
|
require 'eac_launcher/publish'
|
11
11
|
require 'eac_launcher/ruby'
|
12
|
-
require 'eac_launcher/stereotypes'
|
13
12
|
require 'eac_launcher/vendor'
|
14
13
|
end
|
@@ -6,24 +6,15 @@ module EacLauncher
|
|
6
6
|
module Git
|
7
7
|
class Base < ::EacLauncher::Paths::Real
|
8
8
|
module DirtyFiles
|
9
|
-
|
10
|
-
dirty_files.any?
|
11
|
-
end
|
9
|
+
delegate :dirty, to: :eac_git
|
12
10
|
|
13
11
|
def dirty_files
|
14
|
-
|
15
|
-
|
12
|
+
eac_git.dirty_files.map do |df|
|
13
|
+
::OpenStruct.new(
|
14
|
+
df.to_h.merge(path: df.path.to_path, absolute_path: df.absolute_path.to_path)
|
15
|
+
)
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
def parse_status_line(line)
|
22
|
-
m = /\A(.)(.)\s(.+)\z/.match(line)
|
23
|
-
::Kernel.raise "Status pattern does not match \"#{line}\"" unless m
|
24
|
-
::OpenStruct.new(index: m[1], worktree: m[2], path: m[3],
|
25
|
-
absolute_path: ::File.expand_path(m[3], self))
|
26
|
-
end
|
27
18
|
end
|
28
19
|
end
|
29
20
|
end
|
@@ -15,7 +15,7 @@ module EacLauncher
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def find_parent_instance(current)
|
18
|
-
if ::
|
18
|
+
if ::Avm::Projects::Stereotype.git_stereotypes.any? { |s| current.stereotype?(s) }
|
19
19
|
return current
|
20
20
|
end
|
21
21
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'eac_launcher/git/mirror_update'
|
4
4
|
require 'eac_launcher/vendor/github'
|
5
|
-
require '
|
5
|
+
require 'avm/projects/stereotypes/git/publish'
|
6
6
|
|
7
7
|
module EacLauncher
|
8
8
|
module Git
|
@@ -13,7 +13,7 @@ module EacLauncher
|
|
13
13
|
class WarpBase < ::EacLauncher::Paths::Real
|
14
14
|
include ::EacRubyUtils::SimpleCache
|
15
15
|
|
16
|
-
TARGET_REMOTE = ::
|
16
|
+
TARGET_REMOTE = ::Avm::Projects::Stereotypes::Git::Publish::PUBLISH_GIT_REMOTE_NAME
|
17
17
|
|
18
18
|
def initialize(instance)
|
19
19
|
@instance = instance
|
@@ -48,7 +48,7 @@ module EacLauncher
|
|
48
48
|
stereotypes.each do |s|
|
49
49
|
next unless publish?(s)
|
50
50
|
|
51
|
-
infov(name, "publishing #{s.
|
51
|
+
infov(name, "publishing #{s.label}")
|
52
52
|
s.publish_class.new(self).run
|
53
53
|
end
|
54
54
|
end
|
@@ -57,7 +57,7 @@ module EacLauncher
|
|
57
57
|
stereotypes.each do |s|
|
58
58
|
next unless publish?(s)
|
59
59
|
|
60
|
-
puts "#{name.to_s.cyan}|#{s.
|
60
|
+
puts "#{name.to_s.cyan}|#{s.label}|" \
|
61
61
|
"#{s.publish_class.new(self).check}"
|
62
62
|
end
|
63
63
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/stereotypes'
|
3
4
|
require 'eac_launcher/paths/real'
|
4
|
-
require 'eac_launcher/stereotypes'
|
5
5
|
|
6
6
|
module EacLauncher
|
7
7
|
module Paths
|
@@ -55,7 +55,7 @@ module EacLauncher
|
|
55
55
|
private
|
56
56
|
|
57
57
|
def stereotypes_uncached
|
58
|
-
::
|
58
|
+
::Avm::Projects::Stereotype.stereotypes.select { |s| s.match?(self) }
|
59
59
|
end
|
60
60
|
|
61
61
|
def build_child(name)
|
File without changes
|
data/template/avm/{stereotypes/eac_redmine_base0 → eac_redmine_base0}/deploy/config/secrets.yml
RENAMED
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'ostruct'
|
5
|
+
|
6
|
+
module EacGit
|
7
|
+
class Local
|
8
|
+
module DirtyFiles
|
9
|
+
STATUS_LINE_PATTERN = /\A(.)(.)\s(.+)\z/.freeze
|
10
|
+
|
11
|
+
def dirty?
|
12
|
+
dirty_files.any?
|
13
|
+
end
|
14
|
+
|
15
|
+
def dirty_file?(path)
|
16
|
+
absolute_path = path.to_pathname.expand_path(root_path)
|
17
|
+
dirty_files.any? do |df|
|
18
|
+
df.absolute_path == absolute_path
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def dirty_files
|
23
|
+
command('status', '--porcelain', '--untracked-files').execute!.each_line.map do |line|
|
24
|
+
parse_status_line(line.gsub(/\n\z/, ''))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def parse_status_line(line)
|
31
|
+
STATUS_LINE_PATTERN.if_match(line) do |m|
|
32
|
+
::OpenStruct.new(index: m[1], worktree: m[2], path: m[3].to_pathname,
|
33
|
+
absolute_path: m[3].to_pathname.expand_path(root_path))
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/concern'
|
4
|
+
require 'eac_ruby_utils/envs/ssh_env/dasho_options'
|
4
5
|
require 'eac_ruby_utils/listable'
|
5
6
|
require 'eac_ruby_utils/patches/object/if_present'
|
6
7
|
|
@@ -11,6 +12,7 @@ module EacRubyUtils
|
|
11
12
|
extend ::ActiveSupport::Concern
|
12
13
|
|
13
14
|
included do
|
15
|
+
include ::EacRubyUtils::Envs::SshEnv::DashoOptions
|
14
16
|
add_nodasho_option('IdentityFile')
|
15
17
|
end
|
16
18
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'active_support/concern'
|
4
4
|
require 'eac_ruby_utils/boolean'
|
5
|
+
require 'eac_ruby_utils/envs/ssh_env/dasho_options'
|
5
6
|
|
6
7
|
module EacRubyUtils
|
7
8
|
module Envs
|
@@ -10,6 +11,7 @@ module EacRubyUtils
|
|
10
11
|
extend ::ActiveSupport::Concern
|
11
12
|
|
12
13
|
included do
|
14
|
+
include ::EacRubyUtils::Envs::SshEnv::DashoOptions
|
13
15
|
add_nodasho_option('Quiet')
|
14
16
|
end
|
15
17
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/concern'
|
4
|
+
require 'eac_ruby_utils/envs/ssh_env/dasho_options'
|
4
5
|
require 'eac_ruby_utils/listable'
|
5
6
|
require 'eac_ruby_utils/patches/object/if_present'
|
6
7
|
|
@@ -11,6 +12,7 @@ module EacRubyUtils
|
|
11
12
|
extend ::ActiveSupport::Concern
|
12
13
|
|
13
14
|
included do
|
15
|
+
include ::EacRubyUtils::Envs::SshEnv::DashoOptions
|
14
16
|
add_nodasho_option('Terminal')
|
15
17
|
include ::EacRubyUtils::Listable
|
16
18
|
lists.add_string :terminal_option, :auto, :disable, :enable, :force
|
@@ -33,6 +33,11 @@ module EacRubyUtils
|
|
33
33
|
find_list_by_method(name) || super
|
34
34
|
end
|
35
35
|
|
36
|
+
def hash_keys_validate!(hash, error_class = ::StandardError)
|
37
|
+
hash.keys.each { |key| value_validate!(key, error_class) }
|
38
|
+
hash
|
39
|
+
end
|
40
|
+
|
36
41
|
def i18n_key
|
37
42
|
"eac_ruby_utils.listable.#{class_i18n_key}.#{item}"
|
38
43
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/inflector'
|
4
|
+
require 'eac_ruby_utils/listable'
|
4
5
|
|
5
6
|
module EacRubyUtils
|
6
7
|
class << self
|
@@ -10,15 +11,14 @@ module EacRubyUtils
|
|
10
11
|
end
|
11
12
|
|
12
13
|
class RequireSub
|
13
|
-
|
14
|
-
|
15
|
-
REQUIRE_DEPENDENCY_OPTION_KEY = :require_dependency
|
14
|
+
include ::EacRubyUtils::Listable
|
15
|
+
lists.add_symbol :option, :base, :include_modules, :require_dependency
|
16
16
|
|
17
17
|
attr_reader :file, :options
|
18
18
|
|
19
19
|
def initialize(file, options = {})
|
20
20
|
@file = file
|
21
|
-
@options = options
|
21
|
+
@options = self.class.lists.option.hash_keys_validate!(options)
|
22
22
|
end
|
23
23
|
|
24
24
|
def apply
|
@@ -29,7 +29,7 @@ module EacRubyUtils
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def active_support_require(path)
|
32
|
-
return false unless options[
|
32
|
+
return false unless options[OPTION_REQUIRE_DEPENDENCY]
|
33
33
|
|
34
34
|
::Kernel.require_dependency(path)
|
35
35
|
true
|
@@ -46,7 +46,7 @@ module EacRubyUtils
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def include_modules
|
49
|
-
return unless options[
|
49
|
+
return unless options[OPTION_INCLUDE_MODULES]
|
50
50
|
|
51
51
|
base.constants.each do |constant_name|
|
52
52
|
constant = base.const_get(constant_name)
|
@@ -57,11 +57,11 @@ module EacRubyUtils
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def base
|
60
|
-
options[
|
60
|
+
options[OPTION_BASE] || raise('Option :base not setted')
|
61
61
|
end
|
62
62
|
|
63
63
|
def base?
|
64
|
-
options[
|
64
|
+
options[OPTION_BASE] ? true : false
|
65
65
|
end
|
66
66
|
|
67
67
|
def kernel_require(path)
|