Module: CPEE::DStore
- Defined in:
- lib/cpee-dstore/implementation.rb
Defined Under Namespace
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.implementation(opts) ⇒ Object
}}}
93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/cpee-dstore/implementation.rb', line 93 def self::implementation(opts) opts[:data_dir] ||= File.(File.join(__dir__,'data')) Proc.new do on resource do on resource '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' do on resource '[a-z_][a-zA-Z0-9_]*' do run DoGet, opts[:data_dir] if get 'rfile' run DoPut, opts[:data_dir] if put 'ifile' end end end end end |