Method: Boxes::Environment#available_scripts

Defined in:
lib/boxes/environment.rb

#available_scriptsObject



30
31
32
33
34
35
36
37
# File 'lib/boxes/environment.rb', line 30

def available_scripts
  t = Dir.glob("#{Boxes.config.working_dir}/scripts/*")
  a = t.collect { |c| c.include?('purge.sh') ? next : c }.compact

  a.collect do |c|
    c.gsub(Boxes.config.working_dir.to_s + '/scripts/', '')
  end
end