Module: Dapp::Kube::Dapp::Command::Ruby2Go
- Included in:
- Dapp
- Defined in:
- lib/dapp/kube/dapp/command/ruby2go.rb
Instance Method Summary collapse
Instance Method Details
#ruby2go_deploy_command(command:, raw_command_options: nil, **options) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/dapp/kube/dapp/command/ruby2go.rb', line 6 def ruby2go_deploy_command(command:, raw_command_options: nil, **) ([:options] ||= {}).merge!(project_dir: path.to_s, raw_command_options: ) ruby2go_deploy(command: command, **).tap do |res| raise ::Dapp::Error::Command, code: :ruby2go_deploy_command_failed, data: { command: command, message: res["error"] } unless res["error"].nil? break res['data'] end end |