Sha256: d3ca36c2086ddef1c5046cc24cae2f7f5e7fcc5a7cb33b4daceab4c36642cb81

Contents?: true

Size: 875 Bytes

Versions: 11

Compression:

Stored size: 875 Bytes

Contents

class Brief::Apps::Blueprint::Feature
  include Brief::Model
  include Brief::RemoteSyncing

  defined_in Pathname(__FILE__)

  meta do
    title
    project
    owner
    status :in => %w(draft published)
    persona
    goal
    behavior
    epic
    remote_id
    tags Array
  end

  template :file => "feature.md.erb"

  content do
    persona "p strong:first-child"
    behavior "p strong:second-child"
    goal "p strong:third-child"
    settings "pre[lang='yaml'] code:first-of-type", :serialize => :yaml, :hide => true
  end

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

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

  helpers do
    def parent_epic
      briefcase.epics(title: epic, project: data.project).first
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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