Sha256: ff84b7f0bc635e009bce1340e0305b5e2223bfca4c339961c9214bfd8f2a8726

Contents?: true

Size: 584 Bytes

Versions: 11

Compression:

Stored size: 584 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?
          `pip 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

11 entries across 11 versions & 1 rubygems

Version Path
learn-test-1.2.26 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.25 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.24 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.23 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.22 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.21 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.2 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.1 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.2.0 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.1.1 lib/learn_test/python_unittest/nose_installer.rb
learn-test-1.1.0 lib/learn_test/python_unittest/nose_installer.rb