Class: RepoManager::PathAction

Inherits:
AppAction show all
Defined in:
lib/repo_manager/actions/path_action.rb

Overview

Show repository path contained in the configuration file to STDOUT.

Alias for ‘repo list –list=path’

Examples:

Usage: repo path


See Also:

  • #list

Instance Attribute Summary

Attributes inherited from BaseAction

#args, #configuration, #exit_code, #option_parser, #options, #output, #template

CLI actions collapse

Methods inherited from AppAction

#asset_type, #repos

Methods inherited from BaseAction

#after_execute, #asset_options, #asset_type, #assets, #before_execute, #initialize, #items, #overwrite_output?, #parse_options, #process, #render, #write_to_output

Constructor Details

This class inherits a constructor from RepoManager::BaseAction

Instance Method Details

#executeObject



14
15
16
# File 'lib/repo_manager/actions/path_action.rb', line 14

def execute
  RepoManager::ListAction.new(args.push('--list=path'), configuration).execute
end

#helpObject



18
19
20
# File 'lib/repo_manager/actions/path_action.rb', line 18

def help
  super :comment_starting_with => "Show repository path", :located_in_file => __FILE__
end