Sha256: 899ec7df6547436e5dc91cb47c7dfb5662050dd3410c4f2116ae8a5761ece59b

Contents?: true

Size: 397 Bytes

Versions: 11

Compression:

Stored size: 397 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.30.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.29.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.28.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.28.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.27.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.27.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.26.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.25.1 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.25.0 app/models/shipit/deploy_spec/rubygems_discovery.rb
shipit-engine-0.24.0 app/models/shipit/deploy_spec/rubygems_discovery.rb