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/ruby.rb,
lib/avmtrf1/docker.rb,
lib/avmtrf1/esosti.rb,
lib/avmtrf1/issues.rb,
lib/avmtrf1/oracle.rb,
lib/avmtrf1/result.rb,
lib/avmtrf1/ad_user.rb,
lib/avmtrf1/node_js.rb,
lib/avmtrf1/redmine.rb,
lib/avmtrf1/ruby/gems.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/oracle/oci8.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/oracle/object.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/issues/factory.rb,
lib/avmtrf1/oracle/objects.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/oracle/connection.rb,
lib/avmtrf1/tools/application.rb,
lib/avmtrf1/oracle/object/base.rb,
lib/avmtrf1/oracle/object/user.rb,
lib/avmtrf1/oracle/object/view.rb,
lib/avmtrf1/check_point/session.rb,
lib/avmtrf1/docker/image_runner.rb,
lib/avmtrf1/forponto/user/month.rb,
lib/avmtrf1/inventario_sistemas.rb,
lib/avmtrf1/jira/entities/issue.rb,
lib/avmtrf1/oracle/object/table.rb,
lib/avmtrf1/tools/runner/esosti.rb,
lib/avmtrf1/tools/runner/oracle.rb,
lib/avmtrf1/esosti/session/login.rb,
lib/avmtrf1/node_js/docker_image.rb,
lib/avmtrf1/rest_provider/entity.rb,
lib/avmtrf1/ruby/gems/dependency.rb,
lib/avmtrf1/tools/runner/node_js.rb,
lib/avmtrf1/tools/runner/openvpn.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/openvpn/config/parser.rb,
lib/avmtrf1/rest_provider/request.rb,
lib/avmtrf1/tools/runner/forponto.rb,
lib/avmtrf1/forponto/session/login.rb,
lib/avmtrf1/openvpn/config/builder.rb,
lib/avmtrf1/oracle/connection/base.rb,
lib/avmtrf1/redmine/entities/issue.rb,
lib/avmtrf1/rest_provider/instance.rb,
lib/avmtrf1/rest_provider/response.rb,
lib/avmtrf1/esosti/instance/changed.rb,
lib/avmtrf1/git/issue_on_repository.rb,
lib/avmtrf1/oracle/objects/relation.rb,
lib/avmtrf1/tools/runner/php/docker.rb,
lib/avmtrf1/forponto/parsers/espelho.rb,
lib/avmtrf1/tools/runner/check_point.rb,
lib/avmtrf1/trf1_dspace_base0/deploy.rb,
lib/avmtrf1/check_point/session/login.rb,
lib/avmtrf1/esosti/raw_data_sanitizer.rb,
lib/avmtrf1/esosti/session/atividades.rb,
lib/avmtrf1/forponto/session/interval.rb,
lib/avmtrf1/git/push_large/lfs_commit.rb,
lib/avmtrf1/openvpn/config/parser/tag.rb,
lib/avmtrf1/ruby/gems/not_found_error.rb,
lib/avmtrf1/tools/runner/esosti/fetch.rb,
lib/avmtrf1/tools/runner/oracle/query.rb,
lib/avmtrf1/esosti/session/action_base.rb,
lib/avmtrf1/esosti/session/solicitacao.rb,
lib/avmtrf1/inventario_sistemas/parser.rb,
lib/avmtrf1/openvpn/config/parser/line.rb,
lib/avmtrf1/oracle/objects/sql_builder.rb,
lib/avmtrf1/trf1_dspace_base0/instance.rb,
lib/avmtrf1/forponto/user/day_registers.rb,
lib/avmtrf1/tools/runner/esosti/changed.rb,
lib/avmtrf1/tools/runner/esosti/request.rb,
lib/avmtrf1/tools/runner/forponto/saldo.rb,
lib/avmtrf1/tools/runner/git/push_large.rb,
lib/avmtrf1/tools/runner/node_js/docker.rb,
lib/avmtrf1/git/push_large/source_commit.rb,
lib/avmtrf1/openvpn/config/parser/simple.rb,
lib/avmtrf1/openvpn/config/parser/builder.rb,
lib/avmtrf1/patches/avm/launcher/git/base.rb,
lib/avmtrf1/redmine/entities/issue_status.rb,
lib/avmtrf1/rest_provider/instance/issues.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/day_registers.rb,
lib/avmtrf1/forponto/parsers/espelho/utils.rb,
lib/avmtrf1/forponto/session/day_registers.rb,
lib/avmtrf1/git/push_large/lfs_commit/push.rb,
lib/avmtrf1/inventario_sistemas/site_build.rb,
lib/avmtrf1/patches/avm/git/issue/complete.rb,
lib/avmtrf1/tools/runner/check_point/login.rb,
lib/avmtrf1/tools/runner/oracle/source_get.rb,
lib/avmtrf1/tools/runner/oracle/user_clear.rb,
lib/avmtrf1/tools/runner/trf1_dspace_base0.rb,
lib/avmtrf1/esosti/session/solicitacao/main.rb,
lib/avmtrf1/git/push_large/lfs_commit/cache.rb,
lib/avmtrf1/inventario_sistemas/parser/body.rb,
lib/avmtrf1/tools/runner/forponto/marcacoes.rb,
lib/avmtrf1/oracle/connection/string_builder.rb,
lib/avmtrf1/tools/runner/inventario_sistemas.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/helpers.rb,
lib/avmtrf1/git/push_large/source_commit/push.rb,
lib/avmtrf1/inventario_sistemas/parser/header.rb,
lib/avmtrf1/inventario_sistemas/parser/body_row.rb,
lib/avmtrf1/inventario_sistemas/site_build/index.rb,
lib/avmtrf1/forponto/parsers/espelho/summary_node.rb,
lib/avmtrf1/tools/runner/trf1_dspace_base0/deploy.rb,
lib/avmtrf1/forponto/parsers/espelho/rows_consumer.rb,
lib/avmtrf1/inventario_sistemas/site_build/sistema.rb,
lib/avmtrf1/git/push_large/lfs_commit/commit_changes.rb,
lib/avmtrf1/inventario_sistemas/parser/header_column.rb,
lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb,
lib/avmtrf1/git/push_large/lfs_commit/track_large_files.rb,
lib/avmtrf1/inventario_sistemas/site_build/html_page_base.rb,
lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb,
lib/avmtrf1/git/push_large/lfs_commit/pick_source_revision.rb,
lib/avmtrf1/git/push_large/lfs_commit/checkout_previous_revision.rb,
lib/avmtrf1/inventario_sistemas/site_build/html_page_base/layout.rb,
lib/avmtrf1/inventario_sistemas/site_build/html_page_base/elements.rb

Defined Under Namespace

Modules: ActiveDirectory, CheckPoint, Docker, Esosti, Executables, Forponto, Git, Issues, Jira, NodeJs, Openvpn, Oracle, Patches, Php, Red, Redmine, RestProvider, Ruby, Tools, Trf1DspaceBase0 Classes: Ini, InventarioSistemas, IssueFactory, Result

Constant Summary collapse

DEFAULT_JIRA_PATH_PREFIX =
'default.jira'

Class Method Summary collapse

Class Method Details

.ad_userObject


7
8
9
# File 'lib/avmtrf1/ad_user.rb', line 7

def ad_user
  @ad_user ||= ::Avmtrf1::ActiveDirectory::User.by_configs('ad_user')
end

.default_esostiObject


8
9
10
# File 'lib/avmtrf1/default_esosti.rb', line 8

def default_esosti
  @default_esosti ||= trf1_esosti('https://esosti.trf1.jus.br')
end

.default_jiraObject


9
10
11
12
13
14
15
16
# File 'lib/avmtrf1/default_jira.rb', line 9

def default_jira
  @default_jira ||= ::Avmtrf1::Jira::Instance.new(
    'https://jira.engesoftware.com.br',
    ::EacConfig::Node.context.current.entry("#{DEFAULT_JIRA_PATH_PREFIX}.username").value,
    ::EacConfig::Node.context.current
    .entry("#{DEFAULT_JIRA_PATH_PREFIX}.password", noecho: true).value
  )
end

.default_redmineObject


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

.trf1_esosti(url) ⇒ Object


12
13
14
15
16
17
18
# File 'lib/avmtrf1/default_esosti.rb', line 12

def trf1_esosti(url)
  ::Avmtrf1::Esosti::Instance.new(
    url,
    "#{::Avmtrf1.ad_user.username}@#{::Avmtrf1.ad_user.domain.downcase}.gov.br",
    ::Avmtrf1.ad_user.password
  )
end