2017-01-22 14:43:56 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2017-01-22 15:55:45 +00:00
|
|
|
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
|
|
|
|