Sha256: eb13f303dafa2de2edb91f66090521623456446bbe112fe82a7c9f9ca3c7a170

Contents?: true

Size: 427 Bytes

Versions: 10

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class DeploySpec
    module RubygemsDiscovery
      def discover_deploy_steps
        discover_gem || super
      end

      def discover_gem
        publish_gem if gem?
      end

      def gem?
        !!gemspec
      end

      def gemspec
        Dir[file('*.gemspec').to_s].first
      end

      def publish_gem
        ["release-gem #{gemspec}"]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.38.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.37.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.36.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.36.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.35.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.35.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.34.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.33.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.32.0 app/models/shipit/deploy_spec/rubygems_discovery.rb