lib/kitchen/driver/ec2.rb in kitchen-ec2-0.10.0.rc.1 vs lib/kitchen/driver/ec2.rb in kitchen-ec2-0.10.0

- old
+ new

@@ -176,11 +176,10 @@ def create(state) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength copy_deprecated_configs(state) return if state[:server_id] info(Kitchen::Util.outdent!(<<-END)) - Creating <#{state[:server_id]}>... If you are not using an account that qualifies under the AWS free-tier, you may be charged to run these suites. The charge should be minimal, but neither Test Kitchen nor its maintainers are responsible for your incurred costs. END @@ -425,10 +424,10 @@ end end def create_ec2_json(state) if windows_os? - cmd = "mkdir \\etc\\chef\\ohai\\hints; echo $null >> \\etc\\chef\\ohai\\hints\\ec2.json" + cmd = "New-Item -Force C:\\chef\\ohai\\hints\\ec2.json -ItemType File" else cmd = "sudo mkdir -p /etc/chef/ohai/hints;sudo touch /etc/chef/ohai/hints/ec2.json" end instance.transport.connection(state).execute(cmd) end