Class: Textus::Action::Published

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, proposal_from

Methods included from Contract::DSL

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

Class Method Details

.call(container:) ⇒ Object



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

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

Instance Method Details

#argsObject



11
12
13
# File 'lib/textus/action/published.rb', line 11

def args
  {}
end