Sha256: 5d24f123ff35bbf8d00c9736b6d359abce9cc00e2abf255467caf90489b982e7

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/core_ext'
require 'ehbrs/cooking_book/build'

module Ehbrs
  class Runner
    class CookingBook
      class Build
        runner_with :help, :subcommands do
          desc 'Operações para livros de receitas.'
          arg_opt '-d', '--target-dir', 'Caminho para o diretório destino da construção.'
        end

        def run
          infov 'Project', build.project
          infov 'Target directory', build.target_dir
          build.run
          success 'Done'
        end

        private

        def build_uncached
          ::Ehbrs::CookingBook::Build.new(
            runner_context.call(:project), target_dir: parsed.target_dir
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ehbrs-tools-0.20.0 lib/ehbrs/runner/cooking_book/build.rb
ehbrs-tools-0.19.0 lib/ehbrs/runner/cooking_book/build.rb
ehbrs-tools-0.18.0 lib/ehbrs/runner/cooking_book/build.rb
ehbrs-tools-0.17.0 lib/ehbrs/runner/cooking_book/build.rb