acceptance/lib/acceptance/ace_command_helper.rb
# A helper to build a bolt command used in acceptance testing
# @param [Beaker::Host] host the host to execute the command on
# @param [String] command the command to execute on the bolt SUT
# @param [Hash] flags the command flags to append to the command
# @option flags [String] '--nodes' the nodes to run on
# @option flags [String] '--user' the user to run the command as
# @option flags [String] '--password' the password for the user
# @option flags [nil] '--no-host-key-check' specify nil to use
# @option flags [nil] '--no-ssl' specify nil to use
# @param [Hash] opts the options hash for this method
A helper to build a bolt command used in acceptance testing
A helper to build a bolt command used in acceptance testing
def default_boltdir
      @default_boltdir ||= begin
        query = bolt['platform'] =~ /windows/ ? 'cygpath -m $(printenv HOME)' : 'printenv HOME'
        home = on(bolt, query).stdout.chomp
        File.join(home, '.puppetlabs/bolt')
      end
    end
def default_boltdir @default_boltdir ||= begin query = bolt [ 'platform' ] =~ / windows / ? 'cygpath -m $(printenv HOME)' : 'printenv HOME' home = on ( bolt , query ) . stdout . chomp File . join ( home , '.puppetlabs/bolt' ) end end
A helper to build a bolt command used in acceptance testing
A helper to build a bolt command used in acceptance testing
<not_specific>
opts the options hash for this method
opts the options hash for this method
flags
<not_specific>
'--no-ssl' specify nil to use
' -- no - ssl ' specify nil to use