Sha256: 59718da4cd4169755a948d542f4a3c852b0c7f54aaf0d502d6ce0cf04aa17a16

Contents?: true

Size: 836 Bytes

Versions: 78

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_ruby_base1/sources/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module EacRedminePluginBase0
    module Sources
      class Base < ::Avm::EacRubyBase1::Sources::Base
        module Parent
          PARENT_RAKE_TASK_TEST_NAME = 'parent_rake_task'

          # @return [String]
          def parent_rake_test_task_name
            [gem_name, 'test'].map(&:variableize).join(':')
          end

          # @return [Boolean]
          def parent_rake_test_command?
            ruby_parent.rake_task?(parent_rake_test_task_name)
          end

          # @return [EacRubyUtils::Envs::Command]
          def parent_rake_test_command
            ruby_parent.rake(parent_rake_test_task_name).chdir_root.envvar('RAILS_ENV', 'test')
          end
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
eac_tools-0.65.1 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.65.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.64.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.63.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.62.1 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.62.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.61.1 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.61.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.60.3 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.60.2 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.60.1 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.60.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.59.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.58.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.57.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.56.1 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.56.0 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.55.7 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.55.6 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb
eac_tools-0.55.5 sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/sources/base/parent.rb