Better building within sublime

This commit is contained in:
Andy Meneely
2015-03-19 00:24:48 -04:00
parent 666dae393d
commit bcf78cdbf7
3 changed files with 19 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ task default: [:install, :spec]
task :run,[:file] => :install do |t, args|
args.with_defaults(file: 'basic.rb')
Dir.chdir('samples') do
args[:file] << ".rb" unless args[:file].end_with? '.rb'
puts "Running samples/#{args[:file]}"
load args[:file]
end