Class: Textus::Action::Published
Instance Method Summary
collapse
arg, around, cli, cli_stdin, contract, contract?, summary, surfaces, verb, view
Methods inherited from Base
inherited
Instance Method Details
#args ⇒ Object
13
14
15
|
# File 'lib/textus/action/published.rb', line 13
def args
{}
end
|
#call(container:) ⇒ Object
17
18
19
20
21
|
# File 'lib/textus/action/published.rb', line 17
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
|