View | Details | Raw Unified | Return to bug 229624 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/rubygem-itamae/Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	itamae
4
PORTNAME=	itamae
5
PORTVERSION=	1.9.11
5
PORTVERSION=	1.9.11
6
PORTREVISION=	1
6
CATEGORIES=	sysutils rubygems
7
CATEGORIES=	sysutils rubygems
7
MASTER_SITES=	RG
8
MASTER_SITES=	RG
8
9
(-)sysutils/rubygem-itamae/files/patch-lib_itamae_backend.rb (+20 lines)
Line 0 Link Here
1
--- lib/itamae/backend.rb.orig	2018-07-09 01:22:07 UTC
2
+++ lib/itamae/backend.rb
3
@@ -212,6 +212,17 @@ module Itamae
4
       end
5
     end
6
 
7
+    class Jexec < Base
8
+      private
9
+      def create_specinfra_backend
10
+        Specinfra::Backend::Jexec.new(
11
+          shell: @options[:shell],
12
+          login_shell: @options[:login_shell],
13
+          jail_name: @options[:jail_name],
14
+        )
15
+      end
16
+    end
17
+
18
     class Ssh < Base
19
       private
20
       def create_specinfra_backend
(-)sysutils/rubygem-itamae/files/patch-lib_itamae_cli.rb (+20 lines)
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}"

Return to bug 229624