linux_admin 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDdmYTgzMzdjYTViZDA4ZDNlOWI5ZmY5NmQ0MjMwMzhkNDJmYjBjMQ==
4
+ MWNjNTE2YjQ0NzM5MmNiNjgwZWJiZTNiODhkMzMxNGQ5MGUyNDMyYg==
5
5
  data.tar.gz: !binary |-
6
- MDg1MGM3YmI4ZjFhYmYyZGQyODVjM2YwYmE0ZWIyZTk4NGFmNjZmMg==
6
+ M2JkZjJmN2EwNzQxYmVhMjY3ZjdiZjI4ZjExYjdiMGY1YTE2M2E5ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTA4ZjA0N2E0NjllZDFhODNhZWU3MzE5YzQyMDQ0NzQ0NjZkNmM3NjBlNTBk
10
- ZDIzZDY5ZGMxY2M4ODFiY2U0NmNiMmUwZTE2ZjNiOWRkNjgwMGVkNGY2MjZi
11
- YTBmYWMyNGI4NGUxZWY0MDE1NTdjNmZjZWU2NjVjYWYxZmFlOTI=
9
+ NGVjZGQwMWViYTVmNTVmYjhlNmZmYjI5MTJhYjY1YWQ0ZmNiZDMyNDczNTEx
10
+ NTRmNzU1NjJjNGZhY2ZlNTJkYjY1MDEyMDhlODNmZTRjMGFmZTM2NGQ5OTdi
11
+ YTMzNmE3M2FkY2MwNGU0ZDcxYWQzM2RmZTMxNWNiOTcyNDhiYTI=
12
12
  data.tar.gz: !binary |-
13
- MWM1NTY3ZWZmODEzYjQ1YWY4YjIwM2RiYzcxMWUwZTk3ZmNiY2UyOWIyN2Nj
14
- ODA0YWJhY2NiZDk4YWM2NDY1NGQ1OTkyYjk2NTQ3ZWJhNWZhMjViOTZiMWE1
15
- ZGM1NjIxM2FhMzdiMDIyZGFlY2EyMTZmOWZhOWVmMmVhYTBiYmM=
13
+ OGRlNmZlMjE1MzY5NmUyZDAxYzgyMjVhMmI2MzhmYjE4M2Q1NmNlNTk2NGRj
14
+ OTU5NDY4NDY1MTQ2N2EwMGY0MzVlZjA2MTA1MTBhNjE5ODdhMmEzZmMxNWU4
15
+ YTAyZjI2MTViZGM2YjJjOTRkODY2Y2QxODljZjg3MDBmMTZhNmU=
@@ -44,8 +44,9 @@ class LinuxAdmin
44
44
  def initialize(args = {})
45
45
  @volume_group = args[:volume_group]
46
46
  @sectors = args[:sectors]
47
- self.path = args[:name]
48
- self.name = args[:name]
47
+ provided_name = args[:name].to_s
48
+ self.path = provided_name
49
+ self.name = provided_name
49
50
  end
50
51
 
51
52
  def extend_with(vg)
@@ -1,3 +1,3 @@
1
1
  class LinuxAdmin
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -104,6 +104,17 @@ eos
104
104
  end
105
105
  end
106
106
 
107
+ context "path is specified as Pathname" do
108
+ it "sets name" do
109
+ require 'pathname'
110
+ LinuxAdmin::VolumeGroup.stub(:run! => double(:output => ""))
111
+ described_class.stub(:run! => double(:output => ""))
112
+ lv = described_class.create Pathname.new("/dev/#{@vg.name}/lv"), @vg, 256.gigabytes
113
+ lv.name.should == "lv"
114
+ lv.path.should == "/dev/vg/lv"
115
+ end
116
+ end
117
+
107
118
  it "adds logical volume to local registry" do
108
119
  LinuxAdmin::VolumeGroup.stub(:run! => double(:output => ""))
109
120
  described_class.stub(:run! => double(:output => ""))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dunne
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-11-14 00:00:00.000000000 Z
14
+ date: 2013-11-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
- rubygems_version: 2.1.10
232
+ rubygems_version: 2.1.11
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: LinuxAdmin is a module to simplify management of linux systems.