Sha256: 997a98f3c63a620cb6cb000a19f5408fb816f40367f8393a0618f11c5b86a56b

Contents?: true

Size: 397 Bytes

Versions: 29

Compression:

Stored size: 397 Bytes

Contents

class Indocker::Repositories::NoSync < Indocker::Repositories::Abstract
  attr_reader :root_path

  def setup(root_path)
    @root_path = File.expand_path(root_path)
    self
  end

  def project_name
    root_path.split('/').last
  end

  def root_path
    @root_path || (raise ArgumentError.new("root path was not set. Set it using setup method"))
  end

  def clone_path
    root_path
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
indocker-0.3.9 lib/indocker/repositories/no_sync.rb
indocker-0.3.8 lib/indocker/repositories/no_sync.rb
indocker-0.3.7 lib/indocker/repositories/no_sync.rb
indocker-0.3.6 lib/indocker/repositories/no_sync.rb
indocker-0.3.5 lib/indocker/repositories/no_sync.rb
indocker-0.3.4 lib/indocker/repositories/no_sync.rb
indocker-0.3.3 lib/indocker/repositories/no_sync.rb
indocker-0.3.2 lib/indocker/repositories/no_sync.rb
indocker-0.1.18 lib/indocker/repositories/no_sync.rb
indocker-0.3.1 lib/indocker/repositories/no_sync.rb
indocker-0.3.0 lib/indocker/repositories/no_sync.rb
indocker-0.1.17 lib/indocker/repositories/no_sync.rb
indocker-0.1.16 lib/indocker/repositories/no_sync.rb
indocker-0.1.15 lib/indocker/repositories/no_sync.rb
indocker-0.1.14 lib/indocker/repositories/no_sync.rb
indocker-0.1.13 lib/indocker/repositories/no_sync.rb
indocker-0.1.12 lib/indocker/repositories/no_sync.rb
indocker-0.1.11 lib/indocker/repositories/no_sync.rb
indocker-0.1.10 lib/indocker/repositories/no_sync.rb
indocker-0.1.9 lib/indocker/repositories/no_sync.rb