lib/providers/templates/network.rb in lorj-0.2.0 vs lib/providers/templates/network.rb in lorj-1.0.0

- old
+ new

@@ -14,20 +14,19 @@ # See the License for the specific language governing permissions and # limitations under the License. # This file is given as an example. -class Mycloud # This class is automatically derived from ForjCloudBase and ForjProcess +# This class is automatically derived from ForjCloudBase and ForjProcess +class Mycloud + def provider_network_new + Fog::Network.new({ :provider => :mycloud }.merge(hget_cloudObjMapping)) + end - def provider_network_new - Fog::Network.new({:provider => :mycloud}.merge(hget_cloudObjMapping())) - end + def provider_query_network(oNetwork, name) + oNetwork.networks.all(:name => name) + end - def provider_query_network(oNetwork, name) - oNetwork.networks.all(:name => name) - end - - def provider_create_network(oNetwork, name) - oNetwork.networks.create(:name => name) - end - + def provider_create_network(oNetwork, name) + oNetwork.networks.create(:name => name) + end end