Sha256: 8cef31ac56db5839bd66d6f7b8da5317913954e29bc834b2a2d40277812fb721

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

module EacLauncher
  module Stereotypes
    class RubyGem
      include EacLauncher::Stereotype

      class << self
        def match?(path)
          Dir.glob(File.join(path.real, '*.gemspec')).any?
        end

        def color
          :red
        end

        def load_gemspec(gemspec_file)
          ::EacLauncher::Ruby::Gem::Specification.new(gemspec_file)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eac_launcher-0.5.1 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.5.0 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.4.0 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.3.2 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.3.1 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.3.0 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.2.2 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.2.1 lib/eac_launcher/stereotypes/ruby_gem.rb