Class: Railpack::Bundler
- Inherits:
-
Object
show all
- Defined in:
- lib/railpack/bundler.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ Bundler
Returns a new instance of Bundler.
8
9
10
|
# File 'lib/railpack/bundler.rb', line 8
def initialize(config)
@config = config
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
6
7
8
|
# File 'lib/railpack/bundler.rb', line 6
def config
@config
end
|
Instance Method Details
#add(*packages) ⇒ Object
24
25
26
|
# File 'lib/railpack/bundler.rb', line 24
def add(*packages)
raise NotImplementedError, "#{self.class.name} must implement #add"
end
|
#base_command ⇒ Object
48
49
50
|
# File 'lib/railpack/bundler.rb', line 48
def base_command
raise NotImplementedError, "#{self.class.name} must implement #base_command"
end
|
#build!(args = []) ⇒ Object
12
13
14
|
# File 'lib/railpack/bundler.rb', line 12
def build!(args = [])
raise NotImplementedError, "#{self.class.name} must implement #build!"
end
|
#commands ⇒ Object
52
53
54
55
56
57
58
|
# File 'lib/railpack/bundler.rb', line 52
def commands
@commands ||= begin
defaults = default_commands
overrides = bundler_command_overrides
defaults.merge(overrides)
end
end
|
#default_commands ⇒ Object
60
61
62
|
# File 'lib/railpack/bundler.rb', line 60
def default_commands
raise NotImplementedError, "#{self.class.name} must implement #default_commands"
end
|
#exec(*args) ⇒ Object
32
33
34
|
# File 'lib/railpack/bundler.rb', line 32
def exec(*args)
raise NotImplementedError, "#{self.class.name} must implement #exec"
end
|
#install!(args = []) ⇒ Object
20
21
22
|
# File 'lib/railpack/bundler.rb', line 20
def install!(args = [])
raise NotImplementedError, "#{self.class.name} must implement #install!"
end
|
#installed? ⇒ Boolean
40
41
42
|
# File 'lib/railpack/bundler.rb', line 40
def installed?
raise NotImplementedError, "#{self.class.name} must implement #installed?"
end
|
#name ⇒ Object
44
45
46
|
# File 'lib/railpack/bundler.rb', line 44
def name
self.class.name.split('::').last.sub('Bundler', '').downcase
end
|
#remove(*packages) ⇒ Object
28
29
30
|
# File 'lib/railpack/bundler.rb', line 28
def remove(*packages)
raise NotImplementedError, "#{self.class.name} must implement #remove"
end
|
#version ⇒ Object
36
37
38
|
# File 'lib/railpack/bundler.rb', line 36
def version
raise NotImplementedError, "#{self.class.name} must implement #version"
end
|
#watch(args = []) ⇒ Object
16
17
18
|
# File 'lib/railpack/bundler.rb', line 16
def watch(args = [])
raise NotImplementedError, "#{self.class.name} must implement #watch"
end
|