lib/specinfra/backend/cmd.rb in specinfra-2.0.0.beta24 vs lib/specinfra/backend/cmd.rb in specinfra-2.0.0.beta25
- old
+ new
@@ -1,9 +1,9 @@
require 'open3'
module Specinfra
- class Backend
+ module Backend
class Cmd < Base
include PowerShell::ScriptHelper
def run_command(cmd, opts={})
script = create_script(cmd)
@@ -36,10 +36,10 @@
end
private
def powershell
- architecture = @example.metadata[:architecture] || @config[:architecture]
+ architecture = @example.metadata[:architecture] || Specinfra.configuration.architecture
case architecture
when :i386 then x86_powershell
when :x86_64 then x64_powershell
else raise ArgumentError, "invalid architecture [#{architecture}]"