Sha256: 726417e274bcfaa22c3d8b65baaa8ade410d6e539558741d835855224e100f6d

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

require 'avm/eac_asciidoctor_base0/build'
require 'avm/eac_asciidoctor_base0/project'
require 'eac_cli/core_ext'
require 'eac_ruby_utils/console/docopt_runner'

module Avm
  module Tools
    class Runner
      class LocalProject
        class EacAsciidoctorBase0
          class Build
            runner_with :help do
              desc 'Build the project'
              arg_opt '-d', '--target-dir', 'Directory to build'
            end

            def run
              start_banner
              build.run
            end

            private

            def build_uncached
              ::Avm::EacAsciidoctorBase0::Build.new(runner_context.call(:project),
                                                    target_directory: parsed.target_dir)
            end

            def default_target_directory
              runner_context.call(:project).root.join('build')
            end

            def start_banner
              runner_context.call(:project_banner)
              infov 'Target directory', build.target_directory
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avm-tools-0.95.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.94.3 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.94.2 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.94.1 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.94.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.93.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.92.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.91.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
avm-tools-0.90.0 lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb