Module: Avmtrf1
- Defined in:
- lib/avmtrf1.rb,
lib/avmtrf1/git.rb,
lib/avmtrf1/ini.rb,
lib/avmtrf1/php.rb,
lib/avmtrf1/jira.rb,
lib/avmtrf1/docker.rb,
lib/avmtrf1/esosti.rb,
lib/avmtrf1/issues.rb,
lib/avmtrf1/result.rb,
lib/avmtrf1/ad_user.rb,
lib/avmtrf1/configs.rb,
lib/avmtrf1/redmine.rb,
lib/avmtrf1/fs_cache.rb,
lib/avmtrf1/red/client.rb,
lib/avmtrf1/red/helper.rb,
lib/avmtrf1/red/server.rb,
lib/avmtrf1/executables.rb,
lib/avmtrf1/ini/profile.rb,
lib/avmtrf1/red/profile.rb,
lib/avmtrf1/default_jira.rb,
lib/avmtrf1/docker/image.rb,
lib/avmtrf1/tools/runner.rb,
lib/avmtrf1/forponto/user.rb,
lib/avmtrf1/git/reference.rb,
lib/avmtrf1/jira/entities.rb,
lib/avmtrf1/jira/instance.rb,
lib/avmtrf1/rest_provider.rb,
lib/avmtrf1/tools/version.rb,
lib/avmtrf1/default_esosti.rb,
lib/avmtrf1/esosti/session.rb,
lib/avmtrf1/git/push_large.rb,
lib/avmtrf1/default_redmine.rb,
lib/avmtrf1/esosti/entities.rb,
lib/avmtrf1/esosti/instance.rb,
lib/avmtrf1/active_directory.rb,
lib/avmtrf1/forponto/session.rb,
lib/avmtrf1/php/docker_image.rb,
lib/avmtrf1/redmine/entities.rb,
lib/avmtrf1/redmine/instance.rb,
lib/avmtrf1/tools/runner/git.rb,
lib/avmtrf1/tools/runner/php.rb,
lib/avmtrf1/tools/runner/red.rb,
lib/avmtrf1/check_point/session.rb,
lib/avmtrf1/forponto/user/month.rb,
lib/avmtrf1/jira/entities/issue.rb,
lib/avmtrf1/tools/runner/esosti.rb,
lib/avmtrf1/tools/runner/oracle.rb,
lib/avmtrf1/esosti/session/login.rb,
lib/avmtrf1/rest_provider/entity.rb,
lib/avmtrf1/active_directory/user.rb,
lib/avmtrf1/esosti/entities/issue.rb,
lib/avmtrf1/forponto/user/balance.rb,
lib/avmtrf1/git/cached_repository.rb,
lib/avmtrf1/git/push_large/_utils.rb,
lib/avmtrf1/tools/runner/forponto.rb,
lib/avmtrf1/oracle/connection/base.rb,
lib/avmtrf1/redmine/entities/issue.rb,
lib/avmtrf1/rest_provider/instance.rb,
lib/avmtrf1/git/issue_on_repository.rb,
lib/avmtrf1/tools/runner/php/docker.rb,
lib/avmtrf1/forponto/parsers/espelho.rb,
lib/avmtrf1/tools/runner/check_point.rb,
lib/avmtrf1/check_point/session/login.rb,
lib/avmtrf1/esosti/session/atividades.rb,
lib/avmtrf1/git/push_large/lfs_commit.rb,
lib/avmtrf1/esosti/session/action_base.rb,
lib/avmtrf1/esosti/session/solicitacao.rb,
lib/avmtrf1/tools/runner/forponto/saldo.rb,
lib/avmtrf1/tools/runner/git/push_large.rb,
lib/avmtrf1/git/push_large/source_commit.rb,
lib/avmtrf1/patches/eac_launcher/git/base.rb,
lib/avmtrf1/redmine/entities/issue_status.rb,
lib/avmtrf1/tools/runner/forponto/espelho.rb,
lib/avmtrf1/tools/runner/forponto/resumos.rb,
lib/avmtrf1/tools/runner/git/issues_check.rb,
lib/avmtrf1/forponto/parsers/espelho/utils.rb,
lib/avmtrf1/tools/runner/check_point/login.rb,
lib/avmtrf1/tools/runner/oracle/source_get.rb,
lib/avmtrf1/esosti/parsers/solicitacao/main.rb,
lib/avmtrf1/esosti/session/solicitacao/main.rb,
lib/avmtrf1/git/push_large/lfs_commit/_cache.rb,
lib/avmtrf1/oracle/connection/string_builder.rb,
lib/avmtrf1/forponto/parsers/espelho/day_node.rb,
lib/avmtrf1/forponto/parsers/espelho/row_node.rb,
lib/avmtrf1/forponto/parsers/espelho/sub_node.rb,
lib/avmtrf1/git/push_large/lfs_commit/_04_push.rb,
lib/avmtrf1/git/push_large/lfs_commit/_helpers.rb,
lib/avmtrf1/git/push_large/source_commit/_push.rb,
lib/avmtrf1/forponto/parsers/espelho/summary_node.rb,
lib/avmtrf1/forponto/parsers/espelho/rows_consumer.rb,
lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb,
lib/avmtrf1/git/push_large/lfs_commit/_03_commit_changes.rb,
lib/avmtrf1/git/push_large/lfs_commit/_02_track_large_files.rb,
lib/avmtrf1/git/push_large/lfs_commit/_00_checkout_previous_revision.rb,
lib/avmtrf1/git/push_large/lfs_commit/_01_cherry_pick_source_revision.rb
Defined Under Namespace
Modules: ActiveDirectory, CheckPoint, Docker, Esosti, Executables, Forponto, Git, Issues, Jira, Oracle, Patches, Php, Red, Redmine, RestProvider, Tools
Classes: Ini, Result
Constant Summary
collapse
- CONFIGS_KEY =
'avm-trf1-tools'
- DEFAULT_JIRA_PATH_PREFIX =
'default.jira'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configs_storage_path ⇒ Object
Returns the value of attribute configs_storage_path.
9
10
11
|
# File 'lib/avmtrf1/configs.rb', line 9
def configs_storage_path
@configs_storage_path
end
|
Class Method Details
.ad_user ⇒ Object
7
8
9
|
# File 'lib/avmtrf1/ad_user.rb', line 7
def ad_user
@ad_user ||= ::Avmtrf1::ActiveDirectory::User.by_configs('ad_user')
end
|
.configs ⇒ Object
11
12
13
|
# File 'lib/avmtrf1/configs.rb', line 11
def configs
@configs ||= ::EacRubyUtils::Console::Configs.new(CONFIGS_KEY, configs_options)
end
|
.configs_options ⇒ Object
15
16
17
|
# File 'lib/avmtrf1/configs.rb', line 15
def configs_options
configs_storage_path.if_present({}) { |v| { storage_path: v } }
end
|
.default_esosti ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/avmtrf1/default_esosti.rb', line 8
def default_esosti
@default_esosti ||= ::Avmtrf1::Esosti::Instance.new(
'https://esosti.trf1.jus.br',
"#{::Avmtrf1.ad_user.username}@#{::Avmtrf1.ad_user.domain.downcase}.gov.br",
::Avmtrf1.ad_user.password
)
end
|
.default_jira ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/avmtrf1/default_jira.rb', line 9
def default_jira
@default_jira ||= ::Avmtrf1::Jira::Instance.new(
'https://jira.engesoftware.com.br',
::Avmtrf1.configs.read_entry("#{DEFAULT_JIRA_PATH_PREFIX}.username"),
::Avmtrf1.configs.read_password("#{DEFAULT_JIRA_PATH_PREFIX}.password")
)
end
|
.default_redmine ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/avmtrf1/default_redmine.rb', line 8
def default_redmine
@default_redmine ||= ::Avmtrf1::Redmine::Instance.new(
'http://redmine.trf1.gov.br',
::Avmtrf1.ad_user.username,
::Avmtrf1.ad_user.password
)
end
|
.fs_cache ⇒ Object
7
8
9
|
# File 'lib/avmtrf1/fs_cache.rb', line 7
def fs_cache
@fs_cache ||= ::EacRubyUtils::FilesystemCache.new(ENV['HOME'], '.cache', 'avmtrf1-tools')
end
|