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.5.6 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.5 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.4 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.3 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.0.rc2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.5.0.rc1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.4.2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.4.1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.4.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.3.3 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.3.2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.3.1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.3.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.2.2 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.2.1 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.2.0 lib/learn_test/strategies/python_unittest/nose_installer.rb
learn-test-2.1.2 lib/learn_test/strategies/python_unittest/nose_installer.rb