Sha256: 994160a76e3c270b9d878b3cadcb2b0f4bfc00b867f8c3f512decf2606768e4a

Contents?: true

Size: 844 Bytes

Versions: 11

Compression:

Stored size: 844 Bytes

Contents

class BlueprintReleasePublisher
  def self.publish(epic, options={})
    via = (options.fetch(:via, :github) || :github)

    if respond_to?("publish_via_#{via}")
      send("publish_via_#{via}", epic,options)
    else
      raise "Invalid publishing source. Need to implement publish_via_#{via} method"
    end
  end

  def self.sync(epic, options={})
    via = (options.fetch(:via, :github) || :github)

    if respond_to?("sync_via_#{via}")
      send("sync_via_#{via}", epic,options)
    else
      raise "Invalid syncing source. Need to implement sync_via_#{via} method"
    end
  end

  def self.publish_via_pivotal(epic, options={})
    raise "Not Implemented.  Implement #{ name }.publish_via_pivotal"
  end

  def self.publish_via_github(epic, options={})
    raise "Not Implemented.  Implement #{ name }.publish_via_github"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
brief-1.17.14 apps/blueprint/lib/release_publisher.rb
brief-1.17.13 apps/blueprint/lib/release_publisher.rb
brief-1.17.12 apps/blueprint/lib/release_publisher.rb
brief-1.17.11 apps/blueprint/lib/release_publisher.rb
brief-1.17.10 apps/blueprint/lib/release_publisher.rb
brief-1.17.9 apps/blueprint/lib/release_publisher.rb
brief-1.17.8 apps/blueprint/lib/release_publisher.rb
brief-1.17.7 apps/blueprint/lib/release_publisher.rb
brief-1.17.5 apps/blueprint/lib/release_publisher.rb
brief-1.17.4 apps/blueprint/lib/release_publisher.rb
brief-1.17.3 apps/blueprint/lib/release_publisher.rb