Module: Veye::Project
- Defined in:
- lib/veye/project.rb,
lib/veye/project/check.rb,
lib/veye/views/project.rb,
lib/veye/project/license.rb,
lib/veye/views/project/info_csv.rb,
lib/veye/views/project/info_json.rb,
lib/veye/views/project/info_table.rb,
lib/veye/views/project/info_pretty.rb,
lib/veye/views/project/licence_csv.rb,
lib/veye/views/project/licence_json.rb,
lib/veye/views/project/info_markdown.rb,
lib/veye/views/project/licence_table.rb,
lib/veye/views/project/dependency_csv.rb,
lib/veye/views/project/licence_pretty.rb,
lib/veye/views/project/dependency_json.rb,
lib/veye/views/project/dependency_table.rb,
lib/veye/views/project/dependency_pretty.rb,
lib/veye/views/project/dependency_markdown.rb
Overview
Project module includes commands for managing projects on VersionEye and presenting results on command line.
Defined Under Namespace
Classes: Check, DependencyCSV, DependencyJSON, DependencyMarkdown, DependencyPretty, DependencyTable, InfoCSV, InfoJSON, InfoMarkdown, InfoPretty, InfoTable, LicenceCSV, LicenceJSON, LicencePretty, LicenceTable, License
Class Method Summary collapse
-
.get_files(path) ⇒ Object
returns list of supported filenames in the working folder.
- .supported?(filename) ⇒ Boolean
- .supported_files ⇒ Object
Class Method Details
.get_files(path) ⇒ Object
returns list of supported filenames in the working folder
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/veye/project.rb', line 23 def self.get_files(path) files = Set.new Dir.foreach(path) do |filename| files << filename if supported?(filename) end if files.include?('Gemfile') and files.include?('Gemfile.lock') files.delete 'Gemfile' end files end |
.supported?(filename) ⇒ Boolean
18 19 20 |
# File 'lib/veye/project.rb', line 18 def self.supported?(filename) @supported_files.any? {|ptrn| filename.to_s.downcase.match(/^#{ptrn}$/) } end |
.supported_files ⇒ Object
14 15 16 |
# File 'lib/veye/project.rb', line 14 def self.supported_files @supported_files end |