From 1e42c93b87e51b5b750877edc5c3cd310f5a3562 Mon Sep 17 00:00:00 2001 From: Matt Spaulding Date: Wed, 29 Jun 2016 11:03:37 -0700 Subject: [PATCH] Add support for login shell --- lib/itamae/backend.rb | 1 + lib/itamae/cli.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/itamae/backend.rb b/lib/itamae/backend.rb index 2a14484e..ce7cb043 100644 --- a/lib/itamae/backend.rb +++ b/lib/itamae/backend.rb @@ -221,6 +221,7 @@ def create_specinfra_backend disable_sudo: disable_sudo?, ssh_options: ssh_options, shell: @options[:shell], + login_shell: @options[:login_shell], ) end diff --git a/lib/itamae/cli.rb b/lib/itamae/cli.rb index f37a854e..42c9e0a6 100644 --- a/lib/itamae/cli.rb +++ b/lib/itamae/cli.rb @@ -22,6 +22,7 @@ def self.define_exec_options option :node_yaml, type: :string, aliases: ['-y'] option :dry_run, type: :boolean, aliases: ['-n'] option :shell, type: :string, default: "/bin/sh" + option :login_shell, type: :boolean, default: false option :ohai, type: :boolean, default: false, desc: "This option is DEPRECATED and will be unavailable." option :profile, type: :string, desc: "[EXPERIMENTAL] Save profiling data", banner: "PATH" option :detailed_exitcode, type: :boolean, default: false, desc: "exit code 0 - The run succeeded with no changes or failures, exit code 1 - The run failed, exit code 2 - The run succeeded, and some resources were changed"