Sha256: 76c048d894738cad7155858456c4a5168c775a46301f5f9d4a2aa2d5a33f4af2

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

class Brief::Apps::Blueprint::Milestone
  include Brief::Model

  defined_in Pathname(__FILE__)

  meta do
    title
    number
    projects
    personas
    due_date
    tags Array
  end

  content do
    title "h1:first-of-type", :hide => true
    paragraph "p:first-of-type"
    paragraphs "p"
    yaml_data "code.yaml:first-of-type", :serialize => :yaml, :hide => true
  end

  actions do
    def publish
      BlueprintMilestonePublisher.publish(self, via: briefcase.settings.try(:tracking_system))
    end

    def sync
      BlueprintMilestonePublisher.sync(self, via: briefcase.settings.try(:tracking_system))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brief-1.17.2 apps/blueprint/models/milestone.rb
brief-1.17.1 apps/blueprint/models/milestone.rb