phut 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f6fd2943970124abbc403d8474f48b5ac0d34e9
4
- data.tar.gz: 5980c66443b73006fc3f41ca71daead99a1b3b0b
3
+ metadata.gz: 181e372bc2ac6c421b74ce2b453f79c73aa664ac
4
+ data.tar.gz: 6ff377299788daade005648046b3722e201671b7
5
5
  SHA512:
6
- metadata.gz: 004d0486848ad33a0627dbfc8947dcbc9710f6e3809af4de810f650a494954b42ce62a85c0ae76462d016f578ca0b40f994cc91d950e0987c9ff11ac734022f6
7
- data.tar.gz: 825116e5c75eef59edae383219c92449f5179651f235e2da04bebc064556e5b7759db2879bfc5e246282b134ca1d73a39d56212b47301aa81d8cbca2fc0d41d7
6
+ metadata.gz: e84bbfc6ed6dbc5fd63bf0c11515c64081e7e7fc858d7fccdf54ea33fe14c3adf357f28e00ba946c29641cb12f0d6bf30e46f08aef996bdbfd2e08fc82af9335
7
+ data.tar.gz: 37c94364ab404e3926124b6305644fd31149ae23d662d1c9011d47a2fb183896106d54963ebe2a706b545960083c6a38d56d66f30b9b37de0de03890879ab158
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.6.8 (9/9/2015)
7
+ ### Changes
8
+ * Raises Phut::vSwitch::AlreadyRunning when phut failed to start vSwitch.
9
+
10
+
6
11
  ## 0.6.7 (9/9/2015)
7
12
  ### Bugs fixed
8
13
  * [#27](https://github.com/trema/phut/issues/27): Change the option ordering of sysctl to work with CentOS 6.
@@ -6,6 +6,8 @@ require 'phut/shell_runner'
6
6
  module Phut
7
7
  # Open vSwitch controller.
8
8
  class OpenVswitch
9
+ class AlreadyRunning < StandardError; end
10
+
9
11
  include ShellRunner
10
12
 
11
13
  attr_reader :dpid
@@ -45,7 +47,7 @@ module Phut
45
47
  "-- set controller #{bridge_name} connection-mode=out-of-band"
46
48
  sh "sudo ovs-vsctl set-fail-mode #{bridge_name} secure"
47
49
  rescue
48
- raise "Open vSwitch (dpid = #{@dpid}) is already running!"
50
+ raise AlreadyRunning, "Open vSwitch (dpid = #{@dpid}) is already running!"
49
51
  end
50
52
  alias_method :start, :run
51
53
  # rubocop:enable MethodLength
data/lib/phut/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.6.7'
3
+ VERSION = '0.6.8'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya