Class: Yogi::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/yogi.rb

Instance Method Summary collapse

Instance Method Details

#setupObject


39
40
41
42
43
44
45
# File 'lib/yogi.rb', line 39

def setup
  $file_names = []
  $file_names = Dir.glob("app/**/*.rb") + Dir.glob("app/**/*.js") + Dir.glob("app/**/*.css") + Dir.glob("app/**/*.scss") + Dir.glob("app/**/*.erb") + Dir.glob("app/**/*.html") + Dir.glob("config/routes.rb")
  $sample_size = 7
  $file_sample = $file_names.sample($sample_size)
  File.open('.git/.ignoremefile.txt', "a") {|file| file.puts $file_sample.to_json}
end