Class: Escalator::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/escalator/setup.rb

Class Method Summary collapse

Class Method Details

.run(command) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/escalator/setup.rb', line 7

def run command
  @command = command
  if command.set_zshcompletion
    pluginPath = File.expand_path "../../../resources/zsh_plugin/escalator", __FILE__
    FileUtils.cp_r pluginPath, command.custom_plugins
    return
  end
  prepareContext
  exportPlist
end