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 +8 -8
- data/lib/linux_admin/logical_volume.rb +3 -2
- data/lib/linux_admin/version.rb +1 -1
- data/spec/logical_volume_spec.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWNjNTE2YjQ0NzM5MmNiNjgwZWJiZTNiODhkMzMxNGQ5MGUyNDMyYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2JkZjJmN2EwNzQxYmVhMjY3ZjdiZjI4ZjExYjdiMGY1YTE2M2E5ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGVjZGQwMWViYTVmNTVmYjhlNmZmYjI5MTJhYjY1YWQ0ZmNiZDMyNDczNTEx
|
10
|
+
NTRmNzU1NjJjNGZhY2ZlNTJkYjY1MDEyMDhlODNmZTRjMGFmZTM2NGQ5OTdi
|
11
|
+
YTMzNmE3M2FkY2MwNGU0ZDcxYWQzM2RmZTMxNWNiOTcyNDhiYTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
48
|
-
self.
|
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)
|
data/lib/linux_admin/version.rb
CHANGED
data/spec/logical_volume_spec.rb
CHANGED
@@ -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.
|
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
|
+
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.
|
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.
|