Class: Avm::Sources::Base

Inherits:
Object
  • Object
show all
Includes:
With::ApplicationStereotype, With::ExtraSubcommands
Defined in:
lib/avm/sources/base.rb,
lib/avm/sources/base/sub.rb,
lib/avm/sources/base/subs.rb,
lib/avm/sources/base/locale.rb,
lib/avm/sources/base/parent.rb,
lib/avm/sources/base/update.rb,
lib/avm/sources/base/testing.rb,
lib/avm/sources/base/instance.rb,
lib/avm/sources/base/stereotype.rb,
lib/avm/sources/base/sub/remove.rb,
lib/avm/sources/base/subs_paths.rb,
lib/avm/sources/base/update_sub.rb,
lib/avm/sources/base/application.rb,
lib/avm/sources/base/update_subs.rb,
lib/avm/sources/base/version_bump.rb,
lib/avm/sources/base/configuration.rb,
lib/avm/sources/base/organizational.rb

Defined Under Namespace

Modules: Application, Configuration, Instance, Locale, Organizational, Parent, Stereotype, Subs, Testing, Update, VersionBump Classes: Sub, SubsPaths, UpdateSub, UpdateSubs

Instance Method Summary collapse

Methods included from With::ExtraSubcommands

#extra_available_subcommands, #extra_available_subcommands_from_runners_module

Methods included from With::ApplicationStereotype

#stereotype_namespace_module

Instance Method Details

#completer(options = {}) ⇒ Object

Parameters:

  • options (Hash<Symbol, Object>) (defaults to: {})


28
29
30
# File 'lib/avm/sources/base.rb', line 28

def completer(options = {})
  scm.completer(options)
end

#envEacRubyUtils::Envs::LocalEnv

Returns:

  • (EacRubyUtils::Envs::LocalEnv)


33
34
35
# File 'lib/avm/sources/base.rb', line 33

def env
  ::EacRubyUtils::Envs::LocalEnv.new
end

#relative_pathPathname

Returns:

  • (Pathname)


38
39
40
41
42
# File 'lib/avm/sources/base.rb', line 38

def relative_path
  return path if parent.blank?

  path.relative_path_from(parent.path)
end

#to_sObject



44
45
46
# File 'lib/avm/sources/base.rb', line 44

def to_s
  "#{self.class}[#{path}]"
end

#versionAvm::VersionNumber?

Returns:



49
50
51
# File 'lib/avm/sources/base.rb', line 49

def version
  raise_abstract __method__, 'Should return a Avm::VersionNumber or nil'
end