Class: Overapp::Load::LocalDir

Inherits:
Base show all
Defined in:
lib/overapp/load/types/local_dir.rb

Instance Attribute Summary

Attributes inherited from Base

#descriptor

Instance Method Summary collapse

Methods inherited from Base

#apply_to, #commit_message

Instance Method Details

#load(base, ops) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/overapp/load/types/local_dir.rb', line 6

def load(base,ops)
  if Overapp::Project.project? path
    Project.new(:descriptor => path).load(base,ops)
  else
    RawDir.new(:descriptor => path).load(base,ops)
  end
end

#pathObject



4
# File 'lib/overapp/load/types/local_dir.rb', line 4

def path; Overapp.to_proper_dir(descriptor); end