Class: Pik::Update

Inherits:
Command show all
Includes:
BatchFileEditor
Defined in:
lib/pik/commands/update_command.rb

Instance Attribute Summary

Attributes included from BatchFileEditor

#batch

Attributes inherited from Command

#config, #debug, #options, #output, #version

Instance Method Summary collapse

Methods included from BatchFileEditor

#close, #echo_ruby_version, #echo_running_with_ruby_version, #initialize, #set, #switch_gem_home_to, #switch_path_to, #update_gem_batch

Methods inherited from Command

#actual_gem_home, #add_sigint_handler, aka, choose_from, clean_gem_batch, #close, #cmd_name, cmd_name, #command_options, #create, #current_gem_bin_path, #current_version?, #default_gem_home, #delete_old_pik_batches, description, #editors, #find_config_from_path, #get_gem_home, #get_version, hl, inherited, #initialize, it, names, #parse_options, #pik_version, #sh, summary

Instance Method Details

#executeObject



9
10
11
12
# File 'lib/pik/commands/update_command.rb', line 9

def execute
  sh "#{Which::Gem.exe} install pik"
  @batch.call("pik_install #{PIK_BATCH.dirname}")
end