lib/wire/commands/spec_command.rb
# executes serverspec in its target directory
# TODO: stream into stdout instead of Kernel.``
# params:
# +target_dir+ model and output dir
executes serverspec in its target directory
TODO: stream into stdout instead of Kernel.``
params:
+target_dir+ model and output dir
executes serverspec in its target directory TODO : stream into stdout instead of Kernel . ` ` params : + target_dir + model and output dir
def run_serverspec(target_specdir)
      $log.debug 'Running serverspec'
      cmd = "cd #{target_specdir} && sudo rake spec"
      $log.debug "cmd=#{cmd}"
      result = `#{cmd}`
      puts result
    end
def run_serverspec ( target_specdir ) $log . debug 'Running serverspec' cmd = "cd #{target_specdir} && sudo rake spec" $log . debug "cmd=#{cmd}" result = ` #{ cmd } ` puts result end
executes serverspec in its target directory
TODO: stream into stdout instead of Kernel.``
params:
+target_dir+ model and output dir
executes serverspec in its target directory TODO : stream into stdout instead of Kernel . ` ` params : + target_dir + model and output dir
target_specdir
<not_specific>