Class: Mrsk::Commands::Builder
- Inherits:
-
Base
- Object
- Base
- Mrsk::Commands::Builder
show all
- Defined in:
- lib/mrsk/commands/builder.rb
Defined Under Namespace
Classes: Base, Multiarch, Native
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #run_over_ssh
Instance Method Details
#multiarch_remote ⇒ Object
#name ⇒ Object
6
7
8
|
# File 'lib/mrsk/commands/builder.rb', line 6
def name
target.class.to_s.remove("Mrsk::Commands::Builder::").underscore
end
|
#target ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/mrsk/commands/builder.rb', line 10
def target
case
when config.builder && config.builder["multiarch"] == false
native
when config.builder && config.builder["local"] && config.builder["remote"]
multiarch_remote
when config.builder && config.builder["remote"]
native_remote
else
multiarch
end
end
|