lib/network.rb in forj-0.0.24 vs lib/network.rb in forj-0.0.25
- old
+ new
@@ -13,10 +13,11 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+require 'rubygems'
require 'require_relative'
require_relative 'connection.rb'
include Connection
require_relative 'log.rb'
@@ -26,10 +27,11 @@
# Network module
#
module Network
def create_network(name)
begin
- Logging.info(format('creating network %{name}', name: name))
+ info = 'creating network %s' % [name]
+ Logging.info(info)
Connection.network.networks.create(:name => name)
rescue => e
Logging.error(e.message)
end
end