diff --git a/lib/boxen/cli.rb b/lib/boxen/cli.rb index be4db73..ad6a547 100644 --- a/lib/boxen/cli.rb +++ b/lib/boxen/cli.rb @@ -12,14 +12,15 @@ module Boxen attr_reader :config attr_reader :flags attr_reader :puppet + attr_reader :checkout attr_reader :report def initialize(config, flags) @config = config @flags = flags @puppet = Boxen::Puppeteer.new @config - checkout = Boxen::Checkout.new(@config) - @report = Boxen::Reporter.new(@config, checkout, @puppet) + @checkout = Boxen::Checkout.new(@config) + @report = Boxen::Reporter.new(@config, @checkout, @puppet) end def run diff --git a/test/boxen_cli_test.rb b/test/boxen_cli_test.rb index 992009b..bce190b 100644 --- a/test/boxen_cli_test.rb +++ b/test/boxen_cli_test.rb @@ -20,6 +20,7 @@ class BoxenCLITest < Boxen::Test assert_equal config, cli.report.config assert_equal config, cli.report.checkout.config + assert_equal cli.checkout, cli.report.checkout assert_equal cli.puppet, cli.report.puppet end