Compare commits
3 Commits
e2b14af74c
...
bf53c905e5
Author | SHA1 | Date |
---|---|---|
Fabian Schlenz | bf53c905e5 | |
Fabian Schlenz | ea79b9b98c | |
Fabian Schlenz | 7b102d25aa |
3
dup.rb
3
dup.rb
|
@ -28,6 +28,7 @@ MAPPINGS = [
|
|||
['labels', '--label', lambda{|c,i| l=Hash[c.Config.Labels.to_h.delete_if{|k,v| i.Config.Labels[k]==v rescue false}.map{|k,v| [k.to_s, v]}] ; l}],
|
||||
['hostname', '--hostname'],
|
||||
['working_dir', '--workdir', lambda{|c,i| (wd=c.Config.WorkingDir) == i.Config.WorkingDir ? nil : wd}],
|
||||
['init', '--init', lambda{|c,i| c.Config.Init}, {:type=>:switch}],
|
||||
['image', nil, lambda{|c,i| c.Config.Image}],
|
||||
['command', nil, lambda{|c,i| (cmd=c.Config.Cmd.join(" ") rescue nil) == (i.Config.Cmd.join(" ") rescue nil)? nil : cmd}, {:escape=>false}]
|
||||
]
|
||||
|
@ -137,7 +138,7 @@ def action_create(container, file)
|
|||
|
||||
File.open(file, "w") {|f| f.write(get_sample(container))}
|
||||
|
||||
exec("joe #{file.shellescape}")
|
||||
exec("/usr/bin/editor #{file.shellescape}")
|
||||
exit 1 # will never be reached because exec replaces this process. But just in case... ;-)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue