Method: ChefApply::CLI#render_cookbook_setup

Defined in:
lib/chef_apply/cli.rb

#render_cookbook_setup(arguments) ⇒ Object



144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/chef_apply/cli.rb', line 144

def render_cookbook_setup(arguments)
  # TODO update Job so that it doesn't require prefix and host. As a data container,
  # should these attributes even be required?
  job = UI::Terminal::Job.new("", nil) do |reporter|
    @temp_cookbook = generate_temp_cookbook(arguments, reporter)
  end
  UI::Terminal.render_job("...", job)
  handle_failed_job(job)
  job = UI::Terminal::Job.new("", nil) do |reporter|
    @archive_file_location = generate_local_policy(reporter)
  end
  UI::Terminal.render_job("...", job)
  handle_failed_job(job)
end