Sha256: 3c51114a1a06300850b0c7912cbf7ec99de27f52002abdd711c2802c7daf3266

Contents?: true

Size: 844 Bytes

Versions: 13

Compression:

Stored size: 844 Bytes

Contents

class BlueprintProjectPublisher
  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

13 entries across 13 versions & 1 rubygems

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