Class: RubyYacht::Runner::Build
- 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
-
.command ⇒ Object
The identifier for the command.
-
.description ⇒ Object
The description for the command.
Instance Method Summary collapse
-
#run ⇒ Object
This method runs the logic for this command.
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
.command ⇒ Object
The identifier for the command.
7 |
# File 'lib/ruby_yacht/runner/build.rb', line 7 def self.command; 'build'; end |
.description ⇒ Object
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
#run ⇒ Object
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 |