Sha256: bb2837ce1e3f88e50920b307a8c8f21a65846f6c7fba9f5e35d732e07078a49c

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

module LearnOpen
  module DependencyInstallers
    class GemInstaller < BaseInstaller
      def self.detect(lesson, location)
        File.exists?("#{lesson.to_path}/Gemfile")
      end

      def run
        io.puts "Bundling..."
        system_adapter.run_command("bundle install")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
learn-open-1.2.28 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.27 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.26 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.24 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.23 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.22 lib/learn_open/services/dependency_installers/gem_installer.rb
learn-open-1.2.21 lib/learn_open/services/dependency_installers/gem_installer.rb