Class: RubyYacht::Runner::Build

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby_yacht/runner/build.rb

Overview

This class provides a command for building the system.

It will build the images, run the containers, and update the hosts file.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#backtick, #default_project, #docker, #docker_machine, #get_machine_info, #log, #option_parser, #parse_positional_arguments, #project_named, #projects, short_script_name, #system

Class Method Details

.commandObject

The identifier for the command.



7
# File 'lib/ruby_yacht/runner/build.rb', line 7

def self.command; 'build'; end

.descriptionObject

The description for the command.



10
11
12
# File 'lib/ruby_yacht/runner/build.rb', line 10

def self.description
  "Build images and run containers"
end

Instance Method Details

#runObject

This method runs the logic for this command.



15
16
17
18
19
# File 'lib/ruby_yacht/runner/build.rb', line 15

def run
  return BuildImages.new.run &&
  RunContainers.new.run &&
  UpdateHosts.new.run
end