Sha256: fe8bd1acaa7e11561e511086e8ab0f2d3c70a48d6ff47db7fbc1a2e8551713d8

Contents?: true

Size: 552 Bytes

Versions: 7

Compression:

Stored size: 552 Bytes

Contents

class FakeGit
  def clone(source, name, path:)
    FileUtils.mkdir_p("#{path}/#{name}")
    case name
    when "jupyter_lab", "python_lab"
      FileUtils.touch("#{path}/#{name}/requirements.txt")
    when "ios_lab"
      FileUtils.touch("#{path}/#{name}/project.xcodeproj")
    when "ios_with_workspace_lab"
      FileUtils.touch("#{path}/#{name}/project.xcworkspace")
    when "ruby_lab"
      FileUtils.touch("#{path}/#{name}/Gemfile")
    when "node_lab"
      FileUtils.touch("#{path}/#{name}/package.json")
    else
       nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
learn-open-1.2.28 spec/fakes/fake_git.rb
learn-open-1.2.27 spec/fakes/fake_git.rb
learn-open-1.2.26 spec/fakes/fake_git.rb
learn-open-1.2.24 spec/fakes/fake_git.rb
learn-open-1.2.23 spec/fakes/fake_git.rb
learn-open-1.2.22 spec/fakes/fake_git.rb
learn-open-1.2.21 spec/fakes/fake_git.rb