|
Line 0
Link Here
|
|
|
1 |
--- lib/itamae/cli.rb.orig 2018-07-09 01:22:07 UTC |
| 2 |
+++ lib/itamae/cli.rb |
| 3 |
@@ -73,6 +73,17 @@ module Itamae |
| 4 |
run(recipe_files, :docker, options) |
| 5 |
end |
| 6 |
|
| 7 |
+ desc "jail RECIPE [RECIPE...]", "Run Itamae in jail" |
| 8 |
+ define_exec_options |
| 9 |
+ option :jail_name, type: :string, desc: "Jail Hostname" |
| 10 |
+ def jail(*recipe_files) |
| 11 |
+ if recipe_files.empty? |
| 12 |
+ raise "Please specify recipe files." |
| 13 |
+ end |
| 14 |
+ |
| 15 |
+ run(recipe_files, :jexec, options) |
| 16 |
+ end |
| 17 |
+ |
| 18 |
desc "version", "Print version" |
| 19 |
def version |
| 20 |
puts "Itamae v#{Itamae::VERSION}" |