Module: CPEE::EvalRuby

Defined in:
lib/cpee-eval-ruby/translation.rb,
lib/cpee-eval-ruby/implementation.rb

Defined Under Namespace

Modules: Translation Classes: DoIt, Structurize

Constant Summary collapse

SERVER =
File.expand_path(File.join(__dir__,'implementation.xml'))

Class Method Summary collapse

Class Method Details

.implementation(opts) ⇒ Object

}}}



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/cpee-eval-ruby/implementation.rb', line 136

def self::implementation(opts)
  Proc.new do
    on resource do
      on resource 'exec' do
        run DoIt, :small if put 'exec'
      end
      on resource 'exec-full' do
        run DoIt, :full if put 'exec'
      end
      on resource 'structurize' do
        run Structurize if put
      end
    end
  end
end