Class: Pik::Tag

Inherits:
Command show all
Includes:
ConfigFileEditor
Defined in:
lib/pik/commands/tag_command.rb

Instance Attribute Summary

Attributes inherited from Command

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

Instance Method Summary collapse

Methods included from ConfigFileEditor

#initialize

Methods inherited from Command

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

Instance Method Details

#executeObject



63
64
65
66
67
68
69
70
# File 'lib/pik/commands/tag_command.rb', line 63

def execute
  config.global[:tags] ||= Hash.new
  @args.each do |arg|
    tags = config.global[:tags] 
    tags[arg] ||= []
    tags[arg] << find_config_from_path 
  end
end