Add volumes
This commit is contained in:
parent
349d125af5
commit
bffd4d7cad
@ -1,6 +1,7 @@
|
|||||||
class VolumeController < ApplicationController
|
class VolumeController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@volumes = Array.new
|
||||||
file_directory("/mnt")
|
file_directory("/mnt")
|
||||||
get_conf
|
get_conf
|
||||||
info = get_volume_info.split("\n")
|
info = get_volume_info.split("\n")
|
||||||
@ -12,7 +13,6 @@ class VolumeController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse_info(info)
|
def parse_info(info)
|
||||||
@volumes = Array.new
|
|
||||||
volume = Hash.new
|
volume = Hash.new
|
||||||
df = get_df
|
df = get_df
|
||||||
info << "\n"
|
info << "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user