imag/libimagruby/test/test_store.rb

17 lines
341 B
Ruby
Raw Normal View History

2017-01-22 14:43:56 +00:00
#!/usr/bin/env ruby
require "../target/debug/liblibimagruby.so"
2017-01-22 14:43:56 +00:00
color = true
verbose = true
debug = true
2017-01-22 16:05:40 +00:00
RImag.init_logger debug, verbose, color
2017-01-22 14:43:56 +00:00
store_handle = RStoreHandle::new(false, "/tmp/store")
id = RStoreId::new_baseless("test")
test_handle = store_handle.create(id)
2017-01-22 16:05:40 +00:00
RImag.info "Created #{test_handle.location.to_str} from Ruby"
2017-01-22 14:43:56 +00:00