Module: TezosClient::SmartpyInterface::SmartpyWrapper
- Included in:
- TezosClient::SmartpyInterface
- Defined in:
- lib/tezos_client/smartpy_inteface/smartpy_wrapper.rb
Overview
Wrapper used to call the tezos-client binary
Instance Method Summary collapse
Instance Method Details
#call_smartpy(command) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/tezos_client/smartpy_inteface/smartpy_wrapper.rb', line 7 def call_smartpy(command) cmd = smartpy_cmd + command Tools::SystemCall.execute(cmd) rescue SysCallError => e raise SmartPyError, e.to_s end |
#smartpy_cmd ⇒ Object
15 16 17 |
# File 'lib/tezos_client/smartpy_inteface/smartpy_wrapper.rb', line 15 def smartpy_cmd [ "SmartPy.sh" ] end |