Sha256: daba317cebf1625008b024e1c17179ad36817eb93acf2ed28a9ee66a806b338f

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

module EacLauncher
  module Stereotypes
    class RubyGem
      include EacLauncher::Stereotype

      class << self
        def match?(path)
          Dir.glob(File.join(path, '*.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

6 entries across 6 versions & 1 rubygems

Version Path
eac_launcher-0.2.0 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.1.7 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.1.6 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.1.5 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.1.3 lib/eac_launcher/stereotypes/ruby_gem.rb
eac_launcher-0.1.4 lib/eac_launcher/stereotypes/ruby_gem.rb