Class: Mrsk::Commands::Builder
- Inherits:
-
Base
- Object
- Base
- Mrsk::Commands::Builder
show all
- Defined in:
- lib/mrsk/commands/builder.rb
Defined Under Namespace
Classes: Multiarch, Native
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#multiarch_remote ⇒ Object
#name ⇒ Object
7
8
9
|
# File 'lib/mrsk/commands/builder.rb', line 7
def name
target.class.to_s.demodulize.downcase.inquiry
end
|
#target ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/mrsk/commands/builder.rb', line 11
def target
case
when config.builder.nil?
multiarch
when config.builder["multiarch"] == false
native
when config.builder["local"] && config.builder["local"]
multiarch_remote
else
raise ArgumentError, "Builder configuration incorrect: #{config.builder.inspect}"
end
end
|