Module: RepoManager

Defined in:
lib/repo_manager.rb,
lib/repo_manager/app.rb,
lib/repo_manager/errors.rb,
lib/repo_manager/logger.rb,
lib/repo_manager/settings.rb,
lib/repo_manager/git/status.rb,
lib/repo_manager/test/repo_api.rb,
lib/repo_manager/test/test_api.rb,
lib/repo_manager/views/app_view.rb,
lib/repo_manager/extensions/hash.rb,
lib/repo_manager/tasks/add/asset.rb,
lib/repo_manager/views/base_view.rb,
lib/repo_manager/assets/app_asset.rb,
lib/repo_manager/assets/base_asset.rb,
lib/repo_manager/assets/repo_asset.rb,
lib/repo_manager/tasks/thor_helper.rb,
lib/repo_manager/views/view_helper.rb,
lib/repo_manager/actions/app_action.rb,
lib/repo_manager/actions/git_action.rb,
lib/repo_manager/tasks/task_manager.rb,
lib/repo_manager/actions/base_action.rb,
lib/repo_manager/actions/help_action.rb,
lib/repo_manager/actions/list_action.rb,
lib/repo_manager/actions/path_action.rb,
lib/repo_manager/actions/task_action.rb,
lib/repo_manager/tasks/generate/init.rb,
lib/repo_manager/assets/asset_manager.rb,
lib/repo_manager/actions/action_helper.rb,
lib/repo_manager/actions/status_action.rb,
lib/repo_manager/assets/asset_accessors.rb,
lib/repo_manager/assets/asset_configuration.rb

Overview

embed Thor engine to allow extendable tasks

Defined Under Namespace

Modules: ActionHelper, AddHelper, AssetAccessors, Extensions, GenerateHelper, Logger, RepoApi, TestApi, ThorHelper, ViewHelper Classes: Add, App, AppAction, AppAsset, AppView, AssetConfiguration, AssetManager, BaseAction, BaseAsset, BaseView, Generate, GitAction, HelpAction, InvalidRepositoryError, ListAction, NoSuchPathError, PathAction, RepoAsset, Settings, Status, StatusAction, TaskAction, TaskManager

Constant Summary collapse

WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
CYGWIN =
RbConfig::CONFIG['host_os'] =~ /cygwin/i
AVAILABLE_ACTIONS =
%w[help list task path status git]
GIT_NATIVE_SUPPORT =

Commands that don’t need to have the ‘git’ arg precede them. These are not necessarily the same as the allowed ‘commands’ specified in the repo.conf file. NOTE: ‘git help –all` for a full list of git supported commands

%w[add config commit diff fetch log pull push show ls-files grep]

Class Method Summary collapse

Class Method Details

.versionString

Contents of the VERSION file

Example format: 0.0.1

Returns:

  • (String)

    the contents of the version file in #.#.# format



22
23
24
25
26
27
# File 'lib/repo_manager.rb', line 22

def self.version
  version_info_file = File.join(File.dirname(__FILE__), *%w[.. VERSION])
  File.open(version_info_file, "r") do |f|
    f.read.strip
  end
end