Sha256: 14cd8a12c8ac9eabde2b51392dc738fd986c7a964b67ae26d3e0680302c79070

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

require "pathname"
require "sod"

module Milestoner
  module CLI
    module Actions
      module Build
        # Handles build root path.
        class Root < Sod::Action
          include Import[:input]

          description "Set root output path."

          on %w[-r --root], argument: "[PATH]"

          default { Container[:configuration].build_root }

          def call(path = nil) = input.build_root = Pathname(path || default).expand_path
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
milestoner-17.11.0 lib/milestoner/cli/actions/build/root.rb
milestoner-17.10.0 lib/milestoner/cli/actions/build/root.rb
milestoner-17.9.0 lib/milestoner/cli/actions/build/root.rb