Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
Download (494 Bytes)
Bug #11592
» test.rb
ally0620 (Ally Kuo)
, 10/14/2015 03:41 AM
require
"OpEN"
require
"OpENUtil"
open
=
OpENUtil
.
new
()
conn_ret
=
open
.
connect
(
"boa-vlan"
)
exists
=
false
if
conn_ret
==
OpEN
::
OPEN_E_NONE
client
=
open
.
client
ret
=
OpEN
::
openapiVlanCreatedCheck
(
client
,
1
)
if
ret
==
OpEN
::
OPEN_E_NONE
puts
"Hello, exists = true!!"
else
puts
"Hello, exists = false!!"
end
else
Chef
::
Log
.
info
"Failed to connect to 'boa-vlan' in 'vlan_exists'."
puts
"Hello, Failed to connect!!"
end
open
.
terminate
()
« Previous
1
2
3
Next »
(1-1/3)
Loading...