|
|
|
|
@ -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 |
|
|
|
|
|