Class: Mimas::CLI::Commands::Install

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/mimas/commands/install.rb

Constant Summary

Constants included from Template

Template::BASE_DIRECTORY

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Methods included from Terminal::Printer

#ask, #say

Methods included from SSH

#ssh

Methods included from Template

#copy_file, lookup_paths, #read_file, #template

Constructor Details

This class inherits a constructor from Mimas::CLI::Commands::BaseCommand

Instance Method Details

#call(ruby_version:, server_name:) ⇒ Object



14
15
16
17
# File 'lib/mimas/commands/install.rb', line 14

def call(ruby_version:, server_name:)
  server = Config.current.servers[server_name.to_sym]
  server.install_ruby(version: ruby_version)
end