Class: Licensee::FSProject

Inherits:
Project
  • Object
show all
Defined in:
lib/licensee/projects/fs_project.rb

Instance Attribute Summary

Attributes inherited from Project

#detect_packages, #detect_readme

Instance Method Summary collapse

Methods inherited from Project

#license, #license_file, #matched_file, #package_file, #readme_file

Constructor Details

#initialize(path, **args) ⇒ FSProject

Returns a new instance of FSProject.



6
7
8
9
10
11
12
13
14
15
# File 'lib/licensee/projects/fs_project.rb', line 6

def initialize(path, **args)
  if ::File.file?(path)
    @pattern = ::File.basename(path)
    @dir = ::File.dirname(path)
  else
    @pattern = '*'
    @dir = path
  end
  super(**args)
end