Class: Textus::Action::Published

Inherits:
Base
  • Object
show all
Extended by:
Contract::DSL
Defined in:
lib/textus/action/published.rb

Constant Summary collapse

BURN =
:sync

Instance Method Summary collapse

Methods included from Contract::DSL

arg, around, cli, cli_stdin, contract, contract?, summary, surfaces, verb, view

Methods inherited from Base

inherited

Instance Method Details

#argsObject



15
16
17
# File 'lib/textus/action/published.rb', line 15

def args
  {}
end

#call(container:) ⇒ Object



19
20
21
22
23
# File 'lib/textus/action/published.rb', line 19

def call(container:, **)
  container.manifest.data.entries.reject { |entry| entry.publish_to.empty? }.map do |entry|
    { "key" => entry.key, "publish_to" => entry.publish_to }
  end
end