Sha256: 5fb6c39e93a8835c1555f890aa7fd8dddae17265ed846d0213f1d68e7d096841

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

require 'avm/source_stereotypes/base'
require 'avm/eac_ruby_base1/source_stereotypes/update'
require 'eac_ruby_utils/core_ext'

module Avm
  module EacRubyBase1
    module SourceStereotypes
      class Base < ::Avm::SourceStereotypes::Base
        def gemfile_path
          source.path.join('Gemfile')
        end

        def valid?
          gemfile_path.exist? || gemspec_file.exist?
        end

        def update_source(source)
          ::Avm::EacRubyBase1::SourceStereotypes::Update.new(source)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
avm-tools-0.110.0 vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb
avm-tools-0.109.1 vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb
avm-eac_ruby_base1-0.1.0 lib/avm/eac_ruby_base1/source_stereotypes/base.rb
avm-tools-0.109.0 vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb