Class: Chid::Commands::Workstation::Create

Inherits:
Chid::Command show all
Defined in:
lib/chid/commands/workstation/create.rb

Constant Summary

Constants inherited from Chid::Command

Chid::Command::COMMANDS

Instance Attribute Summary

Attributes inherited from Chid::Command

#options

Instance Method Summary collapse

Methods inherited from Chid::Command

command, help, #initialize, map_options_with_values, run

Constructor Details

This class inherits a constructor from Chid::Command

Instance Method Details

#runObject



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/chid/commands/workstation/create.rb', line 24

def run
  workstation_name = get_workstation_name 
  result           = ::ChidConfig.on_osx { select_apps_on_osx }

  if result.empty?
    puts "\nYou did not select any App, please try again."
    return
  end

  chid_config.create_workstation(workstation_name, result)

  puts "\n#{workstation_name} workstation was created!"
end