Class: Milestoner::CLI::Commands::Build

Inherits:
Sod::Command
  • Object
show all
Defined in:
lib/milestoner/cli/commands/build.rb

Overview

Handles the building of different milestone formats.

Instance Method Summary collapse

Instance Method Details

#callObject



29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/milestoner/cli/commands/build.rb', line 29

def call
  format = settings.build_format

  log_info "Building #{settings.project_label} (#{format})..."

  if infused_keys.include? format.to_sym
    __send__(format).call
  else
    logger.abort "Invalid build format: #{format}."
  end

  manifest.call
end