Class: Actions::Katello::ContentViewVersion::Export

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/content_view_version/export.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



30
31
32
# File 'app/lib/actions/katello/content_view_version/export.rb', line 30

def humanized_name
  _("Export")
end

#plan(options) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'app/lib/actions/katello/content_view_version/export.rb', line 10

def plan(options)
  action_subject(options.fetch(:content_view_version))

  sequence do
    export_output = plan_action(::Actions::Pulp3::Orchestration::ContentViewVersion::Export, options).output

    plan_self(export_history_id: export_output[:export_history_id],
              exported_file_checksum: export_output[:exported_file_checksum],
              export_path: export_output[:export_path])
  end
end

#rescue_strategyObject



34
35
36
# File 'app/lib/actions/katello/content_view_version/export.rb', line 34

def rescue_strategy
  Dynflow::Action::Rescue::Skip
end

#runObject



22
23
24
25
26
27
28
# File 'app/lib/actions/katello/content_view_version/export.rb', line 22

def run
  output.update(
    export_history_id: input[:export_history_id],
    export_path: input[:export_path],
    exported_file_checksum: input[:exported_file_checksum]
  )
end