busser-testinfra 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28ed777ea998229e0f7e5323a788f9b24f8c32f1
4
- data.tar.gz: 3f9298116dbb8b0252bd3672b9abe692ea79180d
3
+ metadata.gz: 51a3c0f00a9657f11bfe40dc187c243300dbba1c
4
+ data.tar.gz: c85505124e254aff234ad702cae1db08698454e0
5
5
  SHA512:
6
- metadata.gz: d02303164ba86e4e0b93fb939c62c619266cb1026f10b1aa9aa31527880aa548b10e7196ef7e8a24c6de890645e1b8aed6f3c11d3476299eb6e0b7def7d26ae2
7
- data.tar.gz: 0f7c57ce8d0c167c558c007ff506af80b81f919b399e31c63b17a42561b08c4074252daa20182605a758ec7677dde752d081f0ef7a6d32f98ea0772f6207ff66
6
+ metadata.gz: d06e2cd3d5a2247970de8c666cc6416b3ac871e0018fc19bc67f7c492d21d68f335cad9e52cf178ed51dcc64da72d57e66f51399f4d1d5d0f854aca697616835
7
+ data.tar.gz: ba06f0ecf396662fba479d1b3379478c102d7e9cdcbab9666c0327830a2e90cccf5251e71ea01d25d9baa85ad2154cde36a0bfda6d141d9171f2434881deac72
@@ -1,6 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  require "busser/runner_plugin"
4
+ require "mkmf"
4
5
 
5
6
  # A Busser runner plugin for testinfra
6
7
  #
@@ -18,8 +19,11 @@ class Busser::RunnerPlugin::Testinfra < Busser::RunnerPlugin::Base
18
19
  end
19
20
 
20
21
  def install_testinfra
21
- banner("Installing testinfra...")
22
- run("pip install testinfra")
22
+ exe = find_executable0 "testinfra", nil
23
+ if exe.nil?
24
+ banner("Installing testinfra...")
25
+ run("pip install testinfra")
26
+ end
23
27
  end
24
28
 
25
29
  end
@@ -3,6 +3,6 @@ module Busser
3
3
  module Testinfra
4
4
 
5
5
  # Version string for the Testinfra Busser runner plugin
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser-testinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Tang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: busser