Module: GemWrappers
- Defined in:
- lib/gem-wrappers.rb,
lib/gem-wrappers/version.rb,
lib/gem-wrappers/installer.rb,
lib/gem-wrappers/environment.rb,
lib/gem-wrappers/specification.rb
Defined Under Namespace
Modules: Specification
Classes: Environment, Installer
Constant Summary
collapse
- VERSION =
"1.3.2"
Class Method Summary
collapse
Class Method Details
.environment ⇒ Object
6
7
8
|
# File 'lib/gem-wrappers.rb', line 6
def self.environment
@environment ||= GemWrappers::Environment.new
end
|
.environment_file ⇒ Object
39
40
41
|
# File 'lib/gem-wrappers.rb', line 39
def self.environment_file
environment.file_name
end
|
.install(executables) ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/gem-wrappers.rb', line 14
def self.install(executables)
environment.ensure
installer.ensure
executables.each do |executable|
installer.install(executable)
end
ruby_executables.each do |executable|
installer.install(executable)
end
end
|
.installer ⇒ Object
10
11
12
|
# File 'lib/gem-wrappers.rb', line 10
def self.installer
@installer ||= GemWrappers::Installer.new(environment_file)
end
|
.uninstall(executables) ⇒ Object
28
29
30
31
32
33
|
# File 'lib/gem-wrappers.rb', line 28
def self.uninstall(executables)
executables.each do |executable|
installer.uninstall(executable)
end
end
|
.wrappers_path ⇒ Object
35
36
37
|
# File 'lib/gem-wrappers.rb', line 35
def self.wrappers_path
installer.wrappers_path
end
|