Sha256: ef17d9c95ad4e9d959e818cb8c854ce66839041e68d01dde0bae99267f1638d7

Contents?: true

Size: 585 Bytes

Versions: 26

Compression:

Stored size: 585 Bytes

Contents

module LearnTest
  module PythonUnittest
    class NoseInstaller
      def self.install
        new.install
      end

      def install
        install_nose
        install_nose_json
      end

      def install_nose
        if !nose_installed?
          `easy_install nose`
        end
      end

      def nose_installed?
        !`which nosetests`.empty?
      end

      def install_nose_json
        if !nose_json_installed?
          `pip install nose-json`
        end
      end

      def nose_json_installed?
        !`pip show nose-json`.empty?
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
learn-test-2.1.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.1.1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.0.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.0.0.rc2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.0.0.rc1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.0.0.pre lib/learn_test/strategies/python_unittest/nose_installer.rb