Class: GetVersion::ExecutableStore

Inherits:
Object
  • Object
show all
Defined in:
lib/getversion/executable_store.rb

Instance Method Summary collapse

Constructor Details

#initializeExecutableStore

Returns a new instance of ExecutableStore.



6
7
8
# File 'lib/getversion/executable_store.rb', line 6

def initialize
  @executables = []
end

Instance Method Details

#add_executable(name, namespace, &block) ⇒ Object



10
11
12
# File 'lib/getversion/executable_store.rb', line 10

def add_executable(name, namespace, &block)
  @executables << Executable.new(name, namespace, &block)
end

#get_executable(name) ⇒ Object



14
15
16
# File 'lib/getversion/executable_store.rb', line 14

def get_executable(name)
  @executables.find { |e| e.name == name }
end

#get_version(path) ⇒ Object



18
19
20
# File 'lib/getversion/executable_store.rb', line 18

def get_version(path)

end